E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
initWithString
iOS 13Beta测试问题---持续更新
forKeyPath:@"_placeholderLabel.textColor"];更新为:textField.attributedPlaceholder=[[NSAttributedStringalloc]
initWithString
w佐w
·
2023-01-29 19:41
web 调去app,传参数,将传过来的url 转成字典
[NSMutableDictionaryalloc]init];//传入url建立url组件类NSURLComponents*urlComponents=[[NSURLComponentsalloc]
initWithString
dxin_101
·
2022-07-15 15:52
initWithString
、initWithFormat及stringWithFormat的区别
其实这几个方法看似没啥区别,用的时候也很少在意,但最近无聊折腾了一下,却发现有些端倪。这里先说Apple的一个优化策略:TaggedPointer,这里引用大神的文章:iOSTaggedPointer-。简单来说就是运行时让能用指针地址表达的值就用指针地址表达,不再单独分配内存地址,上个代码先:以a的ascii码为基础,依次加一,然后根据新的ascii码生成字符串a、b、c.....i、j,并打印
STARRAIN99
·
2022-04-15 15:38
iOS--设置textView的attributes属性
attributes后,xib中设置的没有效果,比如:字体颜色失效NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]
initWithString
请叫我大帅99
·
2022-02-21 09:09
iOS - block - 捕获 __block可变对象类型
_block可变对象类型OC代码intmain(intargc,constchar*argv[]){__blockNSMutableString*str=[[NSMutableStringalloc]
initWithString
felix6
·
2022-02-20 19:35
iOS给字符串添加下划线,并设置点击效果
一、给字符串设置下划线效果:例如给字符串ABCDEFG设置下划线效果NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
总有骄阳lcy
·
2022-02-18 19:27
iOS10 下划线不显示、导航栏上自定义视图不显示
在开发过程中发现10.3版本上下划线不显示:在设置下划线的时候:NSMutableAttributedString*newPrice=[[NSMutableAttributedStringalloc]
initWithString
LibraGril
·
2022-02-09 22:10
label的段间距-ios
n2.XXXXXXXX\n3.XXXXXXXX";NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]
initWithString
桔子橙子柚子_F
·
2022-02-07 16:18
iOS Emoji编解码(OBJ-C/Swift)
NSString//编码EMOJI表情字符串-(NSString*)encodeEmojiString{NSMutableString*attributeString=[[NSMutableStringalloc]
initWithString
左方
·
2021-11-16 14:04
iOS 文字添加上标和下标 (转载)
NSString*infoString=@"X2andH20A‡B†C*";NSMutableAttributedString*attString=[[NSMutableAttributedStringalloc]
initWithString
Bias_59f1
·
2021-10-14 17:41
UITextField
UITextField添加PlaceHolder支持方法1(NSAttributedString)NSAttributedString*attrString=[[NSAttributedStringalloc]
initWithString
靠北的北
·
2021-07-02 11:10
iOS 13中setValue: forKey运行报错
valueForKey、setValue:forKey获取和设置私有属性,需要使用其它方式修改_phoneTF.attributedPlaceholder=[[NSAttributedStringalloc]
initWithString
kendi_66
·
2021-06-27 08:48
NSMutableAttributedString富文本
NSMutableAttributedStringalloc]init];[stringappendAttributedString:[[NSMutableAttributedStringalloc]
initWithString
关羽007
·
2021-06-27 04:23
iOS 富文本方式改变UILabel 字间距 行间距
labelWithSpace:(float)space{NSMutableAttributedString*attributedString1=[[NSMutableAttributedStringalloc]
initWithString
0o简单o0
·
2021-06-26 12:34
iOS开发之富文本(图文混排)(全)
设置富文本所有的key(共21种)NSMutableAttributedString*abs=[[NSMutableAttributedStringalloc]
initWithString
:text];
雪落冰心
·
2021-06-25 04:34
iOS 记录一枚有点意思的bug (字符串和数字添加删除线)
@",model.originalPrice];NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]
initWithString
flowerflower
·
2021-06-23 19:19
改变提示框文字颜色
title=@"重要提示❗️";//改变UIAlertController标题颜色NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
sdr小米
·
2021-06-23 04:03
iOS 不可变字符串NSString的使用
创建一个不可变字符串str1值是常量字符串NSString*str1=@"常量字符串";NSLog(@"%@",str1);2.用字符串创建字符串构造NSString*str2=[[NSStringalloc]
initWithString
_菩提本无树_
·
2021-06-20 16:45
检索关键字并替换全部
void)searchKeyHighlight:(NSString*)key{NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
从容到没边的优雅
·
2021-06-10 13:22
textView中的内容富文本
NSMutableAttributedString,现将标题加入,再采用段落,进行居中NSMutableAttributedString*attribute=[[NSMutableAttributedStringalloc]
initWithString
LetBe
·
2021-06-10 02:48
图文混编
NSStringstringWithFormat:@"总积分(分):%.2f",a];NSMutableAttributedString*label1Str=[[NSMutableAttributedStringalloc]
initWithString
芥子劫
·
2021-06-07 01:22
iOS Label设置行间距&判断iphone系统语言
self.entity.textContent;NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]
initWithString
Jalynn
·
2021-05-21 06:37
Label后加小图标
NSMutableAttributedString*attri=[[NSMutableAttributedStringalloc]
initWithString
:[NSStringstringWithFormat
A_好久不见
·
2021-05-20 06:12
YYText使用
*text=[NSMutableAttributedStringnew];NSMutableAttributedString*one=[[NSMutableAttributedStringalloc]
initWithString
YKDog
·
2021-05-19 22:37
ios textField 修改 placeholder color 颜色
UITextField的共有属性attributedPlaceholderself.textField.attributedPlaceholder=[[NSAttributedStringalloc]
initWithString
江河_ios
·
2021-05-19 02:14
object-c 基础十二 【NSString】
1、声明一个字符串常量NSString*str=@“snms";2、通过一个已知的字符串生成一个字符串常量NSString*str2=[[NSStringalloc]
initWithString
:str
vikin_
·
2021-05-18 07:02
富文本
指定字体大小,默认是12point;UIFont代码实例:NSMutableAttributedString*originString=[[NSMutableAttributedStringalloc]
initWithString
Lucky灬Candy
·
2021-05-16 09:36
iOS原价划线
NSNumbernumberWithInteger:NSUnderlineStyleSingle]};NSMutableAttributedString*attribtStr=[[NSMutableAttributedStringalloc]
initWithString
ace_xuke
·
2021-05-13 02:34
Objective-C tips
NSAttributedString*str=[[NSAttributedStringalloc]
initWithString
:nilattributes:@{NSForegroundColorAttributeName
哆啦A梦频道
·
2021-05-08 21:27
iOS富文本实现简单的图文混排
NSString*tempString1=@"绑定手机号";NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]
initWithString
shannoon
·
2021-05-08 10:00
项目中的小知识点(持续更新)
1.改变字符串中某几个字的颜色这是富文本,如下:NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
哈哈大p孩
·
2021-05-06 06:00
在UILabel中加图片
NSMutableAttributedStringalloc]init];//文字NSMutableAttributedString*attri1=[[NSMutableAttributedStringalloc]
initWithString
_桃夭大人_
·
2021-05-05 22:44
NSMutableAttributedString/NSAttributedString
/NSAttributedString相当于带属性的字符串,实现图文混排使用步骤:1.初始化字符串2.初始化字符串的属性3.将属性赋值给字符串1.初始化字符串的常用方法:-(instancetype)
initWithString
及时行乐QAQ
·
2021-05-04 07:10
富文本
起送",self.goods.lowPrice];NSMutableAttributedString*attributeString=[[NSMutableAttributedStringalloc]
initWithString
LGirl
·
2021-05-03 08:55
小记
NSMutableAttributedString*)addCancelLine{NSMutableAttributedString*attri=[[NSMutableAttributedStringalloc]
initWithString
91阿生
·
2021-04-30 01:04
UILable上的字显示不同的颜色和字体,Lable加下划线
颜色和字体NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
:[NSStringstringWithFormat
我的天空蔚蓝色
·
2021-04-30 01:42
NSString
;//2.alloc创建的字符串NSString*str2=[[NSStringalloc]
initWithString
:@"通过alloc创建的字符串"];//3.通过格式化符创建inta=100;NSString
___珋月
·
2021-04-29 10:59
iOS 语音读字符串
AVSpeechSynthesizer*av=[[AVSpeechSynthesizeralloc]init];AVSpeechUtterance*utterance=[[AVSpeechUtterancealloc]
initWithString
f6cbbac3d00e
·
2021-04-29 07:39
给UILabel和UIButton的文字加下划线
100,100,300,100)];label.numberOfLines=0;NSMutableAttributedString*content=[[NSMutableAttributedStringalloc]
initWithString
陌上北辰
·
2021-04-28 22:09
Model--JSONModel
model-->JSON/Dic/DataModel*model=[[Modelalloc]
initWithString
:jsonStringerror:nil];model.name=@"ChangedName
wpf_register
·
2021-04-27 21:53
iOS字符串显示不同颜色
字体大小一样NSString*heightlightString=@"叫我第一名";NSMutableAttributedString*str=[[NSMutableAttributedStringalloc]
initWithString
FANTASIED
·
2021-04-27 18:55
AlertController的title、message和按钮颜色设置
//设置messageNSMutableAttributedString*messageStr=[[NSMutableAttributedStringalloc]
initWithString
:@"message
Moker_C
·
2021-04-26 20:04
iOS - 详解富文本属性 NSMutableAttributedString
NSMutableAttributedString使用使用字符串初始化-(id)
initWithString
:(NSString*)str;NSMutableAttributedString*attString
村雨灬龑
·
2021-04-25 19:45
富文本改变颜色字体
NSMutableAttributedString*AttributedStr=[[NSMutableAttributedStringalloc]
initWithString
:[NSStringstringWithFormat
ljzza
·
2021-04-25 12:36
iOS-NSAttributedString显示字符串
标签内显示不同格式文本(不同字体,不同颜色,删除线,下划线)NSAttributedString显示字符串实例化方法和使用方法实例化方法:使用字符串初始化(id)
initWithString
:(NSString
亦晴工作室
·
2021-04-22 06:29
行间距 字间距
heightWithString:(NSString*)string{NSMutableAttributedString*attributedString1=[[NSMutableAttributedStringalloc]
initWithString
精神病患者link常
·
2021-04-22 00:46
下划线富文本
YES;NSString*canEditText=@"可重新编辑";NSMutableAttributedString*attrStr=[[NSMutableAttributedStringalloc]
initWithString
小的小碰撞
·
2021-04-21 19:41
IOS 修改textFiled palceholder 颜色
NSString*holderText=@"输入餐厅名称或者编号";NSMutableAttributedString*placeholder=[[NSMutableAttributedStringalloc]
initWithString
xiao东哥
·
2021-04-21 18:11
UIAlertController 用 KVC 和富文本自定义 标题和信息 的颜色和字体
Manajay:我的github博客//富文本属性NSMutableAttributedString*attributedTitle=[[NSMutableAttributedStringalloc]
initWithString
manajay
·
2021-04-21 05:10
IOS label加图片
NSMutableAttributedString*attriStr=[[NSMutableAttributedStringalloc]
initWithString
:_labelGrowthValue.text
透支未来
·
2021-04-19 02:33
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他