//文字内容的左边距 UIView* leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 8, 30)]; leftView.backgroundColor = [UIColor clearColor]; tf.leftVie...
分类:
其他好文 时间:
2015-06-26 14:46:43
阅读次数:
118
1.取消多余cell的分割线UIView *view = [UIView new]; view.backgroundColor = [UIColor clearColor]; [tableView setTableFooterView:view];2.取消cell选中状态代理 didsele...
分类:
其他好文 时间:
2015-06-26 14:46:00
阅读次数:
81
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
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
- (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
UIView *blueView = [[UIView alloc] init]; [self.view addSubview:blueView]; blueView.backgroundColor = [UIColor blueColor]; blueView.center = self.view...
分类:
移动开发 时间:
2015-06-23 15:00:24
阅读次数:
252
一个UIColor代表一种颜色,通过UIColor的类方法,可以获得很多常用的颜色+ (UIColor *)blackColor; // 0.0 white 黑色+ (UIColor *)darkGrayColor; // 0.333 white 深灰色+ (UIColor *)lightGrayC...
分类:
其他好文 时间:
2015-06-23 13:21:18
阅读次数:
106
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的简单实用和注释 1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 4 // self.view.backgroundColor = [UIColor grayColor]; 5 6 ...
分类:
其他好文 时间:
2015-06-21 15:48:39
阅读次数:
91