self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]原来的UITextAttributeTextCol...
分类:
其他好文 时间:
2015-08-21 23:14:42
阅读次数:
176
如果你项修改一下cell的颜色的话cell.contentView.backgroundColor = [UIColor redColor];这样是没有问题的,但是如果你想把其修改成无色,那么就不可以了。所以 为了改变单元格的背景色,你需要修改: 1234- (void)tableView:(UI....
分类:
移动开发 时间:
2015-08-21 15:32:28
阅读次数:
185
#define MJColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]1.自定义一个MJHumanView,继承自UIView2.默认View(整一个View)的Class设置为...
分类:
移动开发 时间:
2015-08-21 14:57:49
阅读次数:
223
本文目录一、添加一个简单的图层二、添加一个显示图片的图层三、为什么CALayer中使用CGColorRef和CGImageRef这2种数据类型,而不用UIColor和UIImage?四、UIView和CALayer的选择五、UIView和CALayer的其他关系*上一讲已经说过,UIView内部默认...
分类:
其他好文 时间:
2015-08-20 12:10:21
阅读次数:
133
+ (APCCustomBackButton *)customBackButtonWithTarget:(id)aTarget action:(SEL)anAction tintColor:(UIColor *)aTintColor{ APCCustomBackButton *button = [....
分类:
移动开发 时间:
2015-08-20 00:59:15
阅读次数:
168
直接上代码:
self.textView.layer.borderColor =
UIColor(red: 60/255, green: 40/255, blue: 129/255, alpha: 1).CGColor;
self.textView.layer.borderWidth = 2;
self.textView.layer.cornerRadius = 16;...
分类:
编程语言 时间:
2015-08-19 20:31:05
阅读次数:
142
//未点击的颜色[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], NSForegroundColorAttr...
分类:
其他好文 时间:
2015-08-18 16:25:49
阅读次数:
113
UILabel *fileNameLabel = [[UILabel
alloc]init];
[fileNameLabel setBackgroundColor:[UIColor
clearColor]];
[fileNameLabel setFont:[UIFont
systemFontOfSize:14]];
[fileNameLa...
分类:
其他好文 时间:
2015-08-17 14:05:32
阅读次数:
149
打钩的动画
by 伍雪颖
github
#import
"CheckboxControl.h"
@implementation
CheckboxControl {
NSInteger lineWidth;
UIColor *lineColor;
}
- (void)awakeFromNib {
...
分类:
其他好文 时间:
2015-08-17 14:04:49
阅读次数:
135
刚看到代码中有大量的xx.backgroundColor = [UIColor clearColor];(1)很好奇,默认的背景色是什么值?官方给出的:默认为nil,此时背景是透明的。然后clearColor的备注也写明了:“0.0 white, 0.0 alpha”(白色,但alpha为0),所以...
分类:
其他好文 时间:
2015-08-17 11:26:18
阅读次数:
121