Open system wifi settings
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=WIFI"]];
UITextField
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Gradient flow animation
两倍长度,添加左右移动动画,并添加左右两边覆盖层。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
Alert with text field
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
UISlider
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
UITextView
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
IQActionSheetPickerView
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
NSURLSession
completion handler 并非在主线程回调。
UI相关操作必须在主线程执行。
Protocol Buffers
Protocol buffers – a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more.
Protocol buffers have many advantages over XML for serializing structured data. Protocol buffers:
are simpler
are 3 to 10 times smaller
are 20 to 100 times faster
are less ambiguous
generate data access classes that are easier to use programmatically
- protoc
- build rules
- build phases
Undefined symbols for architecture arm64
build phases -> compile source
NSError
error.localizedDescription
block
循环引用。