#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]#define RGBAColor(r, g, b ,a) [UIColor colorWithRed:(...
分类:
移动开发 时间:
2015-05-14 11:48:55
阅读次数:
813
参照?AutoLayout入门和VFL经验分享实现demo UIView *purpleView = UIView.new;
purpleView.backgroundColor = UIColor.purpleColor;
purpleView.translatesAutoresizingMaskIntoConstraints = NO...
分类:
其他好文 时间:
2015-05-12 11:50:17
阅读次数:
226
互联网 App 中经常会用到 html 颜色值转换 UIColor,比如:#FF9900、0XFF9900 等颜色字符串,以下方法可以将这些字符串转换为 UIColor 对象。 + (UIColor *) colorWithHexString: (NSString *) stringToConve....
分类:
Web程序 时间:
2015-05-09 23:35:31
阅读次数:
169
众所周知,Text Field 和 Text View 的光标颜色默认都是系统应用的那种蓝色。而在实际开发中为了让视觉效果更统一,我们可能会想把那光标的颜色设置成和界面色调一致的颜色。其实在 iOS 7 以后只需要一行代码便可以轻松实现:view.tintColor = [UIColor green...
分类:
其他好文 时间:
2015-05-09 13:08:16
阅读次数:
172
#pragma 处理字体点击效果
- (void)dealWithItemFont:(UITabBarItem *)messageItem
{
NSMutableDictionary *dic=[NSMutableDictionary dictionary];
[dic setValue:[UIColor grayColor] forKey:NSForegroundColorAtt...
分类:
移动开发 时间:
2015-05-08 20:25:12
阅读次数:
198
1. 设置标题栏(顶部)颜色在表控制器中e.g -(void)viewDidLoad中添加self.navigationController.navigationBar.barTintColor = [UIColor redColor];将标题栏设为红色。
分类:
移动开发 时间:
2015-05-06 22:27:54
阅读次数:
142
self.navigationController.navigationBar.barTintColor
= [UIColor blueColor];...
分类:
移动开发 时间:
2015-05-06 17:48:04
阅读次数:
120
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:
其他好文 时间:
2015-05-06 16:51:56
阅读次数:
171
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:
其他好文 时间:
2015-05-06 16:45:30
阅读次数:
137
/** * 配置公共的属性,该属性作用于所有的导航条界面; */- (void)configureConmmonPropety { //1.设置导航条的颜色 self.navigationController.navigationBar.barTintColor = [UIColor ...
分类:
其他好文 时间:
2015-05-05 19:20:54
阅读次数:
171