码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
ios 随机色 宏定义
#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]#define RGBAColor(r, g, b ,a) [UIColor colorWithRed:(...
分类:移动开发   时间:2015-05-14 11:48:55    阅读次数:813
AutoLayout-VFL学习笔记<一>
参照?AutoLayout入门和VFL经验分享实现demo UIView *purpleView = UIView.new; purpleView.backgroundColor = UIColor.purpleColor; purpleView.translatesAutoresizingMaskIntoConstraints = NO...
分类:其他好文   时间:2015-05-12 11:50:17    阅读次数:226
16进制颜色(html颜色值)字符串转为UIColor
互联网 App 中经常会用到 html 颜色值转换 UIColor,比如:#FF9900、0XFF9900 等颜色字符串,以下方法可以将这些字符串转换为 UIColor 对象。 + (UIColor *) colorWithHexString: (NSString *) stringToConve....
分类:Web程序   时间:2015-05-09 23:35:31    阅读次数:169
一行代码轻松修改 Text Field 和 Text View 的光标颜色 — By 昉
众所周知,Text Field 和 Text View 的光标颜色默认都是系统应用的那种蓝色。而在实际开发中为了让视觉效果更统一,我们可能会想把那光标的颜色设置成和界面色调一致的颜色。其实在 iOS 7 以后只需要一行代码便可以轻松实现:view.tintColor = [UIColor green...
分类:其他好文   时间:2015-05-09 13:08:16    阅读次数:172
IOS-UIBarButtonItem的图片文字点击效果
#pragma 处理字体点击效果 - (void)dealWithItemFont:(UITabBarItem *)messageItem { NSMutableDictionary *dic=[NSMutableDictionary dictionary]; [dic setValue:[UIColor grayColor] forKey:NSForegroundColorAtt...
分类:移动开发   时间:2015-05-08 20:25:12    阅读次数:198
IOS导航器 + 表控制器
1. 设置标题栏(顶部)颜色在表控制器中e.g -(void)viewDidLoad中添加self.navigationController.navigationBar.barTintColor = [UIColor redColor];将标题栏设为红色。
分类:移动开发   时间:2015-05-06 22:27:54    阅读次数:142
ios8 设置导航栏颜色
self.navigationController.navigationBar.barTintColor = [UIColor blueColor];...
分类:移动开发   时间:2015-05-06 17:48:04    阅读次数:120
UISlider 的属性
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:其他好文   时间:2015-05-06 16:51:56    阅读次数:171
UISwitch 开关
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:其他好文   时间:2015-05-06 16:45:30    阅读次数:137
导航条NavigationControl的一些属性设置
/** * 配置公共的属性,该属性作用于所有的导航条界面; */- (void)configureConmmonPropety { //1.设置导航条的颜色 self.navigationController.navigationBar.barTintColor = [UIColor ...
分类:其他好文   时间:2015-05-05 19:20:54    阅读次数:171
848条   上一页 1 ... 57 58 59 60 61 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!