随笔分类 - iOS Programming
iOS Programming The Big Nerd Ranch Guide 4th Edition
摘要:kCFURLErrorUnknown = 998, kCFURLErrorCancelled = 999, kCFURLErrorBadURL = 1000, kCFURLErrorTimedOut = 1001, kCFURLErrorUnsupportedURL = 1002, kCF...
阅读全文
摘要:### 集成 PLCrashReporter 上传日志PLCrashReporter 是开源的,官网地址:[https://www.plcrashreporter.org/](https://www.plcrashreporter.org/) 把 CrashReporter.framework 引入...
阅读全文
摘要:[Frome stackoverflow](http://stackoverflow.com/questions/18746929/using-auto-layout-in-uitableview-for-dynamic-cell-layouts-variable-row-heights)```- ...
阅读全文
摘要:[{ "label": "北京Beijing010", "name": "北京", "pinyin": "Beijing", "zip": "010"}, { "label": "重庆Chongqing023", "name": "重庆", "pinyin": "Chongqing", "zip":
阅读全文
摘要:[原文](http://www.7880.com/Info/Article-5a83ff40.html)```C: 代码:/*------------农历转换函数-----------*/char *GetDayOf(PSYSTEMTIME pSt){ /*天干名称*/ const ch...
阅读全文
摘要:.h 文件```#import @protocol RefreshTableFooterViewDelegate;@interface RefreshTableFooterView : UIView@property (nonatomic, weak) id delegate;// 实现Scroll...
阅读全文
摘要:### 在 XCode6 中使用了 C 文件,run 的时候报这个错误,把 .c 文件的后缀改为 .m 就可以了。不知道为什么。
阅读全文
摘要:ZBarSDK-for-iOS===============64bits ZbarSDK for iOS (armv7, amrv7s, arm64).Refers to http://stackoverflow.com/questions/18740304/linker-error-in-xcod...
阅读全文
摘要:### iPhone 分辨率与适配**分辨率和像素**经新xcode6模拟器验证(分辨率为pt,像素为真实pixel):1.iPhone5分...
阅读全文
摘要:要自己手动增加模拟器,用快捷键“Shift+Cmd+2“,打开DEVICES管理界面,点左下角的“+”号,选择创建一个新的模拟器,最后点击“Create”。会弹出提示窗口,提示“Unable to determine SimDeviceSet, set_path=/Users/MyUser/Libr...
阅读全文
摘要:Chapter 28 UIStoryboard1. A segue moves another view controller’s view onto the screen when triggered and is represented by an instance of UIStoryboar...
阅读全文
摘要:Chapter 27 Controlling Animations1. The simplest block-based animation method on UIView is animateWithDuration:animations:. This method takes in the d...
阅读全文
摘要:Chapter 23 Core Data1. Core Data is only able to store certain data types in its store, and UIImage is not one of these types. Instead, you declared t...
阅读全文
摘要:Chapter 21 WebServices and UIWebView1. Usually, fetch data from a web server using four handy classes: NSURL, NSURLRequest, NSURLSessionTask, and NSUR...
阅读全文
摘要:Chapter 20 Dynamic Type1. The Dynamic Type system is centered around text styles. When a font is requested for a given text style, the system will use...
阅读全文
摘要:Chapter 19 Subclassing UITableViewCell1. iOS provides a convenient suite of functions to create offscreen contexts and produce images from them. To cr...
阅读全文
摘要:Chapter 18 Saving, Loading, and Application State1. Archiving is one of the most common ways of persisting model objects on iOS. Archiving an object i...
阅读全文
摘要:Chapter 17 Autorotation, Popover Controller, and Modal View Controllers1.There are two distinct orientations in iOS: device orientation and interface ...
阅读全文
摘要:Chapter 16 Auto layout: Programmatic Constraints1. The line of code regarding translating constraints has to do with an older system for scaling inter...
阅读全文
摘要:Chapter 15 Introduction to Auto Layout1. You do not define a view’s alignment rectangle directly. You do not have enough information (screen size!)to ...
阅读全文

浙公网安备 33010602011771号