[NSDictionary dictionaryWithObject:[UIColor yellowColor] forKey:UITextAttributeTextColor];
可以通过字典的知传入属性,设置title的样式;
key 分别有 UITextAttributeTextColor
UITextAttributeFont
UITextAttributeTextShadowOffset
UITextAttributeTextShadowColor
[NSDictionary dictionaryWithObject:[UIColor yellowColor] forKey:UITextAttributeTextColor];
可以通过字典的知传入属性,设置title的样式;
key 分别有 UITextAttributeTextColor
UITextAttributeFont
UITextAttributeTextShadowOffset
UITextAttributeTextShadowColor
ios的控件的AutoresizingMask属性
补充知识点1:数据类型的划分:可变数据类型、不可变数据类型 可变数据类型: 元组,bool,int,str --可哈希 不可变数据类型: list,dict,set --不可哈希 dic
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M