iOS中的UIColor能够使用16进制来选取颜色. 预先定义例如以下: #define UIColorFromHex(s) [UIColor colorWithRed:(((s & 0xFF0000) >> 16))/255.0 green:(((s & 0xFF00) >> 8))/255.0 ...
分类:
移动开发 时间:
2017-07-19 14:08:34
阅读次数:
144
猫猫分享,必须精品 原创文章,欢迎转载。转载请注明:翟乃玉的博客 地址:http://blog.csdn.net/u013357243?viewmode=contents 一:加入导航控制器 上一篇博客完毕了对底部的TabBar的设置。这一章我们完毕自己定义导航控制器(NYNavigationCon ...
分类:
移动开发 时间:
2017-07-14 23:04:16
阅读次数:
277
猫猫分享。必须精品 原创文章,欢迎转载。转载请注明:翟乃玉的博客 地址:http://blog.csdn.net/u013357243?viewmode=contents 一:加入导航控制器 上一篇博客完毕了对底部的TabBar的设置,这一章我们完毕自己定义导航控制器(NYNavigationCon ...
分类:
移动开发 时间:
2017-07-14 23:02:07
阅读次数:
291
原文地址:http://stackoverflow.com/questions/9766394/get-exif-data-from-uiimage-uiimagepickercontroller ...
分类:
其他好文 时间:
2017-07-13 16:07:16
阅读次数:
405
// // ViewController.m // UI-猜拳游戏 // // Created by jzq_mac on 15/7/15. // Copyright (c) 2015年 jzq_mac. All rights reserved. // #import "ViewController ...
分类:
移动开发 时间:
2017-07-10 10:20:54
阅读次数:
237
1. 设置导航栏NavigationBar的背景颜色: a) setBarTintColor : 设置NagivationBar的颜色 也可以用 : [[UINavigationBar appearance] setBarTintColor:[UIColor yellowColor]]; (在UIN ...
分类:
移动开发 时间:
2017-07-08 15:40:40
阅读次数:
227
[self.navigationItem setLeftBarButtonItem:leftButton]; 这样设置在ios7上button默认是蓝色 解决方法: leftButton.tintColor = [UIColor whiteColor]; [self.navigationItem s ...
分类:
移动开发 时间:
2017-07-07 20:07:26
阅读次数:
202
RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor greenColor]; //创建显示文字的label UILabel *label = [[UI ...
分类:
其他好文 时间:
2017-07-05 17:15:04
阅读次数:
118
/** 1. OC [UIView alloc] initWithXXX:] Swift UIView(XXX:) 类名() == alloc / init 等价 2. 类方法 OC [UIColor redColor] Swift UIColor.red 3. 访问当前对象的属性,可以不使用‘se ...
分类:
编程语言 时间:
2017-07-04 09:50:15
阅读次数:
194
//初始化并定义大小 UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(20, 10, 280, 30)]; textview.backgroundColor=[UIColor whiteColor]; //背景色 ...
分类:
其他好文 时间:
2017-07-02 10:28:01
阅读次数:
145