设定UISegmentControl的文字属性
来源:互联网 发布:qq炫舞 mac 编辑:程序博客网 时间:2024/05/16 04:40
设定UISegmentControl中选中和未选中的segment的文字的属性,包括font, textcolor, shadowcolor.
UIFont *font = [UIFontType06];
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:font,UITextAttributeFont,
[UIColor grayColor],UITextAttributeTextColor,
[UIColorcolorFromHex:0x333333],UITextAttributeTextShadowColor,
nil];
[self.segControl setTitleTextAttributes:attributes forState:UIControlStateNormal];
NSDictionary *selectedAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
font,UITextAttributeFont,
[UIColor whiteColor],UITextAttributeTextColor,
[UIColorcolorFromHex:0x333333],UITextAttributeTextShadowColor,nil];
[self.segControl setTitleTextAttributes:selectedAttributes forState:UIControlStateSelected];
- 设定UISegmentControl的文字属性
- 设置UISegmentControl的文字属性
- UISegmentControl的属性和方法
- UISegmentControl的属性和方法
- 物料的属性设定
- 设定Gtk menu 上的文字属性,比如字体和颜色
- UISegmentControl的用法
- UISegmentControl的使用方法
- UISegmentControl的使用
- UISegmentControl
- UISegmentControl
- UISegmentControl
- UISegmentControl
- UISegmentControl
- Windows安全属性的设定
- 动态设定ITEM的属性
- Windows安全属性的设定
- Windows安全属性的设定
- Oracle 11g单实例GI and DB升级
- 滚动控件(ScrollBar)
- SOA 好好了解下
- jquery 打开新窗口链接
- PhoneGap快速上手 - 基于eclipse环境搭建、部署(图解)
- 设定UISegmentControl的文字属性
- VS2010的一些细节点(1)--VC编译器、V90、v100的含义
- 利用Ajax 、iframe 在当前页面下载
- One sql performance tuning
- Jquery 页面元素点击统计
- WPF TextBox的SpellCheck功能
- 元素周期表顺口溜(转载)
- php+jquery插件imgAreaSelect图片裁剪保存
- 系统分析之二 需求获取的调查研究技术