摘要: 解决一:iOS如何将父视图透明,而内容不透明的方法 self.view.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.7f]; 我们只设置了背景是透明的,没有全局的设置view的透明属性,就能使得添加到view的所有 阅读全文
posted @ 2017-05-16 14:00 KennyHito 阅读(312) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; /* 保存图片有两种方式: 1>.按钮方式; 2>.长按图片方式; */ //显示图片 _imageV = [[U 阅读全文
posted @ 2017-05-16 13:12 KennyHito 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 1.获取运行商需要导入 #import <CoreTelephony/CTCarrier.h> #import <CoreTelephony/CTTelephonyNetworkInfo.h> 2.代码如下 //设备唯一标识符 NSString *identifierStr = [[[UIDevic 阅读全文
posted @ 2017-05-16 11:30 KennyHito 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 1、首先要导入头文件 #import <sys/utsname.h> 2、代码如下 - (NSString *)getDeviceVersionInfo{ struct utsname systemInfo; uname(&systemInfo); NSString *platform = [NSS 阅读全文
posted @ 2017-05-16 11:22 KennyHito 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 问题1:ARC与MRC混编 可以给ARC项目添加MRC标记(-fno-objc-arc),也可以给MRC项目添加ARC标记(-fobjc-arc) 问题2:OC委托报错 Existing instance variable 'middleMan' for property 'middleMan' w 阅读全文
posted @ 2017-05-16 11:01 KennyHito 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 一.iOS8本地推送注册 //创建本地通知 - (void)requestAuthor { if ([UIDevice currentDevice].systemVersion.floatValue >= 8.0) { // 设置通知的类型可以为弹窗提示,声音提示,应用图标数字提示 UIUserNo 阅读全文
posted @ 2017-05-16 10:54 KennyHito 阅读(210) 评论(0) 推荐(0) 编辑
摘要: info.plist 配置【用户隐私的保护】 >= iOS10 Privacy - Bluetooth Peripheral Usage Description --> App需要您的同意,才能访问蓝牙 Privacy - Calendars Usage Description --> App需要您 阅读全文
posted @ 2017-05-16 10:49 KennyHito 阅读(3106) 评论(0) 推荐(0) 编辑