摘要: Variables var myInt = 1 var myExplicitInt: Int = 1 // explicit type var x = 1, y = 2, z = 3 // declare multiple integers myExplicitInt = 2 // set to a 阅读全文
posted @ 2016-02-18 15:09 death3721 阅读(206) 评论(0) 推荐(0) 编辑
摘要: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view; { U 阅读全文
posted @ 2016-02-17 08:41 death3721 阅读(2262) 评论(0) 推荐(0) 编辑
摘要: 1.https://developer.apple.com/certificationauthority/AppleWWDRCA.cer 安装此证书 2.在keychains里选择login,然后点选Certificates,在这个界面,选择工具栏的View -> Show Expired Cert 阅读全文
posted @ 2016-02-16 09:12 death3721 阅读(196) 评论(0) 推荐(0) 编辑
摘要: iOS 8的新特性之一就是让接口更有适应性、更灵活,因此许多视图控制器的实现方式发生了巨大的变化。全新的UIPresentationController在实现视图控制器间的过渡动画效果和自适应设备尺寸变化效果(比如说旋转)中发挥了重要的作用,它有效地节省了程序员们的工作量(天地良心啊)。还有,某些旧 阅读全文
posted @ 2016-02-13 15:13 death3721 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 归档是一种很常用的文件储存方法,几乎任何类型的对象都能够被归档储存,文件将被保存成自定 义类型的文件,相对于NSUserDefault具有更好的保密性。 1.使用archiveRootObject进行单个对象的归档 使用NSKeyedArichiver进行归档、NSKeyedUnarchiver进行 阅读全文
posted @ 2016-02-07 14:31 death3721 阅读(568) 评论(0) 推荐(0) 编辑
摘要: //获取家目录路径的函数: NSString *homeDir = NSHomeDirectory(); //获取Documents目录路径的方法: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, N 阅读全文
posted @ 2016-02-07 12:57 death3721 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 修改Info.plist文件Supported interface orientations的项目 该项目是字典 把Landscape相关的键值删除即可 阅读全文
posted @ 2016-01-18 14:54 death3721 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 添加Key: Bundle display name 后面value直接添加想改变的值 阅读全文
posted @ 2016-01-15 16:18 death3721 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 本文所写方法主要应用UILocalNotification达到本地推送通知栏信息取消了其他教程里过期的UIAlertView方法使用UILocalNotification主要分为创建 调用 取消 三个步骤同时注意 如果调用[NSDate dateWithTimeIntervalSince1970:a... 阅读全文
posted @ 2016-01-12 13:56 death3721 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 参考资料 http://blog.csdn.net/totogo2010/article/details/7634185 阅读全文
posted @ 2016-01-11 16:03 death3721 阅读(126) 评论(0) 推荐(0) 编辑