码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
Button 自动换行
UIView *view=[[UIView alloc]initWithFrame:CGRectMake(0, 200, self.view.frame.size.width, 300)]; view.backgroundColor=[UIColor grayColor]; [self.view.....
分类:其他好文   时间:2015-08-06 13:11:30    阅读次数:110
ios学习(界面传值的方法)
ios(学习)界面传值的方法 block: 实现界面传值的方法1.block: 实现界面传值,都是从第二个界面向第一个界面传值:第一种block 首先).在第二个界面secondViewController声明set方法 声明block @property (nonatomic,copy) void(^change)(UIColor *color); 其次...
分类:移动开发   时间:2015-08-04 13:35:12    阅读次数:428
IOS颜色块设置
+ (UIImage *)imageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRe...
分类:移动开发   时间:2015-08-03 20:50:40    阅读次数:159
Snail—iOS开发中得一些小技巧
开发中 常常会使父视图的透明度改变,而子视图不受父视图的影响,则下面这段代码可以完美解决.... fatherView.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.6];...
分类:移动开发   时间:2015-08-03 17:01:51    阅读次数:134
uiview 单边圆角或者单边框
UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(120, 10, 80, 80)]; view2.backgroundColor = [UIColor redColor]; [self.view addSubview:view2]; ...
分类:其他好文   时间:2015-08-03 16:33:02    阅读次数:202
UI 03 UITextField
UITextField 继承于 UIControl . 特殊的技能是可以输入.// 输入框 UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(100, 50, 200, 40)]; textField.backgroundColor = [UIColor whiteColor]; [...
分类:其他好文   时间:2015-08-03 10:24:21    阅读次数:119
16进制颜色换算
+ (UIColor *) colorWithHexString: (NSString *)color{ NSString *cString = [[color stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewli...
分类:其他好文   时间:2015-07-30 16:26:20    阅读次数:94
UILabel UI中添加文字框
1.UILabel的创建(initWithFrame)例子:UILabel *label1 =[[UILabel alloc] initWithFrame:CGRectMake(100, 100, 150,150)];2.设置背景颜色(backgroundColor)例子:label1.backgroundColor =[UIColor cyanColor];3.添加到window窗口中例子:[se...
分类:其他好文   时间:2015-07-30 11:31:43    阅读次数:97
设置按钮(UIButton)为圆角矩形
//设置按钮颜色 self.autoLoginCheckBox.layer.borderColor = [[UIColor redColor] CGColor]; //设置边框宽度 self.autoLoginCheckBox.layer.borderWidth = 1; //设置按钮为圆...
分类:其他好文   时间:2015-07-30 11:12:50    阅读次数:139
设置textField的placeholder字体的颜色,默认是灰色
//设置textField的placeholder字体的颜色,默认是灰色UIColor *color = [UIColor whiteColor];self.loginNumText.attributedPlaceholder = [[NSAttributedString alloc] initWi...
分类:其他好文   时间:2015-07-30 10:52:56    阅读次数:306
848条   上一页 1 ... 45 46 47 48 49 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!