大家可能会遇到这种问题,就是我本来要用三行表格但是设置好之后,下面有出现了好多的横线~~~~orz这种方法可以解决问题UIView * view = [[UIView alloc]init]; view.backgroundColor = [UIColor clearColor]; [self......
分类:
移动开发 时间:
2015-07-21 14:42:55
阅读次数:
127
为了方便演示,我用storyBoard建立了一个基本的导航栏 并在代码中获得了NavgationBar UINavigationBar *bar = self.navigationController.navigationBar;1[bar setTintColor:[UIColor whiteCo...
分类:
移动开发 时间:
2015-07-21 12:32:24
阅读次数:
129
UILabel *label = [[UILabel alloc]init]; label.numberOfLines = 0;//多行显示 label.backgroundColor = [UIColor yellowColor]; label.font = [UIFon...
分类:
其他好文 时间:
2015-07-20 21:07:11
阅读次数:
123
1.结果展示2.实现思路1.创建复制图层 CAReplicatorLayer *replicator = [CAReplicatorLayer layer];
replicator.frame = CGRectMake(50, 50, 200, 200);
replicator.backgroundColor = [UIColor redColor].CGColor; [...
分类:
移动开发 时间:
2015-07-20 06:55:42
阅读次数:
225
1.UIImage转换成UIcolorcell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"call_半透明蓝"]];
分类:
其他好文 时间:
2015-07-19 23:27:08
阅读次数:
127
直接上代码:
//去掉背景线条显示
self.tableView.separatorStyle =
UITableViewCellSeparatorStyle.SingleLine;
self.tableView.separatorColor =
UIColor.clearColor();...
分类:
编程语言 时间:
2015-07-19 18:06:02
阅读次数:
134
//自定义button设置背景色的方法
- (void)setBackgroundColor:(UIColor *)color forState:(UIControlState)state{
[self setBackgroundImage:[self buttonImageFromColor:color] forState:state];
}
- (UII...
分类:
其他好文 时间:
2015-07-17 19:06:52
阅读次数:
98
UIColor-uiGradientsAdditionshttps://github.com/kaiinui/UIColor-uiGradientsAdditionsBeautiful colors fromhttp://uigradients.com/优雅的渐变色效果,来自于http://uigr...
分类:
其他好文 时间:
2015-07-16 23:52:21
阅读次数:
138
不要设置uiview.alphua属性,这样会影响到这个view的所有subviews的alphua。解决: self.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:透明度比例];
分类:
其他好文 时间:
2015-07-16 15:53:24
阅读次数:
82
//初始化并定义大小 UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(20, 10, 280, 30)]; textview.backgroundColor=[UIColor whiteColor]; //背景....
分类:
其他好文 时间:
2015-07-16 15:45:08
阅读次数:
107