- (void)removeExcessSplitLineOfTableView:(UITableView *)tableView { ?? ? ? ? UIView *v = [[UIView alloc]init]; ? ? v.backgroundColor = [UIColor clearColor]; ? ? tableView.tableFooterView ...
分类:
其他好文 时间:
2015-07-03 19:25:30
阅读次数:
163
UIColor值是由4个0~1的值组成(Red,Green,Blue和Alpha值),而颜色的十六进制值(hex值)是一个十六进制数。这份代码是这两个值直接的互相转换。 + (UIColor*) colorWithHex:(NSInteger)hexValue alpha:(CGFlo...
分类:
其他好文 时间:
2015-07-02 19:44:16
阅读次数:
147
20157.2一天一工程总结系列对各类优秀工程的剖析和拙见。有些胡言乱语还请作者谅解。VBFPopFlatButton1.执行多次的单例#define AGEColorImplement(COLOR_NAME,RED,GREEN,BLUE) \+ (UIColor *)COLOR_NAME{ \ s...
分类:
其他好文 时间:
2015-07-02 19:14:39
阅读次数:
91
UILabel * labb = 。。。//set the border of labblabb.layer.borderWidth = 1;labb.layer.borderColor = [UIColor lightGrayColor].CGColor;//创建圆角图片fixLab.layer....
分类:
移动开发 时间:
2015-07-02 11:46:46
阅读次数:
148
UIColor * myColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"123.jpg"]];self.titleLab.textColor = myColor;//(XXXX.textColor = myColor)只用这两...
分类:
移动开发 时间:
2015-07-02 11:30:53
阅读次数:
148
1。生成随机颜色- (UIColor *)randomColor { static BOOL seeded = NO; if (!seeded) { seeded = YES; (time(NULL)); } CGFloat red = (CGFl...
分类:
移动开发 时间:
2015-07-01 20:20:22
阅读次数:
139
//设置分割线颜色[self.left_tableView setSeparatorColor:[UIColor blackColor]];代理方法:使用前记得绑定delegate与datasource//UITableView返回行数 section判断不同分区返回不同的行数- (NSIntege...
分类:
其他好文 时间:
2015-06-30 23:20:48
阅读次数:
271
UIColor* color = [UIColorcolorWithRed:(x/255.0f)green:( y/255.0f)blue:(z/255.0f)alpha:1.0f];x,y,z的值参见RGB颜色表一个宏#define UIColorFromRGB(rgbValue) [UIColo...
分类:
移动开发 时间:
2015-06-30 18:05:26
阅读次数:
141
代码:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIView *view=[[UIV...
分类:
其他好文 时间:
2015-06-29 19:34:33
阅读次数:
122
方法1:[[UITextField appearance] setTintColor:[UIColor blackColor]]; 这种方法将影响所有TextField。方法2:textField.tintColor = [UIColor redColor];如果在InterfaceBuilder....
分类:
移动开发 时间:
2015-06-26 19:31:54
阅读次数:
185