码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
UITextField
//文字内容的左边距 UIView* leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 8, 30)]; leftView.backgroundColor = [UIColor clearColor]; tf.leftVie...
分类:其他好文   时间:2015-06-26 14:46:43    阅读次数:118
tableviewcell的取消选中,高亮
1.取消多余cell的分割线UIView *view = [UIView new]; view.backgroundColor = [UIColor clearColor]; [tableView setTableFooterView:view];2.取消cell选中状态代理 didsele...
分类:其他好文   时间:2015-06-26 14:46:00    阅读次数:81
UITextField 自定义搜索栏
1,创建UITextField,并且设置代理searchField = [[UITextField alloc]initWithFrame:CGRectMake(0,5,320,36)] ; searchField.textColor= [UIColor colorWithRed:0.0/25...
分类:其他好文   时间:2015-06-25 19:30:15    阅读次数:152
9.懒加载
lazy var demoView: UIView = { let v = UIView(frame: CGRectMake(10, 10, 100, 100)) v.backgroundColor = UIColor.redColor() return v}()格式:lazy v...
分类:其他好文   时间:2015-06-24 23:52:50    阅读次数:123
label字体闪烁效果
- (void)viewDidLoad { [super viewDidLoad]; self.title = @" 测试动画 " ; self.view.backgroundColor = [UIColor lightGrayColor]; _myTest1 = [[UIL...
分类:其他好文   时间:2015-06-24 20:34:29    阅读次数:150
绘制背景色渐变的矩形
两段代码,首先是使用方法 01 CGContextRef context = UIGraphicsGetCurrentContext(); 02 ????NSArray *colors = [NSArray arrayWithObjects: 03 ???????????????????????[UIColor ...
分类:其他好文   时间:2015-06-23 18:25:15    阅读次数:144
IOS中级篇 —— Autoresizing
UIView *blueView = [[UIView alloc] init]; [self.view addSubview:blueView]; blueView.backgroundColor = [UIColor blueColor]; blueView.center = self.view...
分类:移动开发   时间:2015-06-23 15:00:24    阅读次数:252
UIView的背景颜色
一个UIColor代表一种颜色,通过UIColor的类方法,可以获得很多常用的颜色+ (UIColor *)blackColor; // 0.0 white 黑色+ (UIColor *)darkGrayColor; // 0.333 white 深灰色+ (UIColor *)lightGrayC...
分类:其他好文   时间:2015-06-23 13:21:18    阅读次数:106
UINavigationBar的外观
self.navigationItem.title=@"首页"; UILabel *lable=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 40, 44)]; lable.text=@"首页"; lable.textColor=[UIColor...
分类:其他好文   时间:2015-06-22 22:16:44    阅读次数:133
UITextField的简单使用
关于UITextField的简单实用和注释 1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 4 // self.view.backgroundColor = [UIColor grayColor]; 5 6 ...
分类:其他好文   时间:2015-06-21 15:48:39    阅读次数:91
848条   上一页 1 ... 53 54 55 56 57 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!