IOS ramp up
UI ramp up
Storyboard
https://www.raywenderlich.com/113388/storyboards-tutorial-in-ios-9-part-1
Storyboard compress/hug priority
http://krakendev.io/blog/autolayout-magic-like-harry-potter-but-real
Trait variant
http://stackoverflow.com/questions/39890055/what-is-vary-for-traits-in-xcode-8
TableCell
https://www.raywenderlich.com/129059/self-sizing-table-view-cells
uiwebview vs wkwebivew (latest)
NSUrlSession vs NSUrlConnection (latest)
Table View
http://www.apeth.com/iOSBook/ch21.html#_custom_cells
http://stackoverflow.com/questions/13660004/retrieve-custom-prototype-cell-height-from-storyboard
Magin
http://stackoverflow.com/questions/25807545/what-is-constrain-to-margin-in-storyboard-in-xcode-6
http://stackoverflow.com/questions/5887041/margin-and-padding-for-ui-elements-in-ios
(in the beginning, iOS has no padding or margin for relative layout)s
Content offset vs Content inset
Storyboard tutorial
https://www.raywenderlich.com/113394/storyboards-tutorial-in-ios-9-part-2
unwind segue
https://spin.atomicobject.com/2014/10/25/ios-unwind-segues/
pushViewController (old) vs Segue (new)
http://timross.info/blog/2013/03/19/to-segue-or-not-to-segue/
storyboard (new) vs nib (old)
navigation item
http://stackoverflow.com/questions/27808199/uibutton-width-not-filling-toolbar-when-run-on-simulator
xib and ViewController
http://eppz.eu/blog/uiview-from-xib/
storyboard, nib, code
https://www.toptal.com/ios/ios-user-interfaces-storyboards-vs-nibs-vs-custom-code
file owner vs custom class
nib file owner means the class could get the value from nib, so from better design, the file owner be the custom view or custom view controller is the best design.
But some times, for convenient, we could split a page’s different parts to different nibs, and each nibs’ file owner is page’s view controller. all logic is written inside view controller.
Could we say, when you give custom class, the file owner will also be that custom class. When you give file owner, it don’t means the view will use custom class, it may still use default UI class, and file owner could get out all the data from nib. (But file owner or custom class should must exist one), right???
Nib
You should always use loadNibNamed to create your custom view, just like you never call [[view controller alloc] init] in your code. We use [storyBoard instantiateInitialViewController] to create view controller. I guess loadNibNames must do sth more than alloc init and it should do sth to unbundle the layout and set binding.
(Compared to android you just directly initiate your custom view class: because all unbundle and binding are written by you in the construct method of custom view class)
When you create a custom view, don’t write the xib view custom class as your custom view, else it will cause infinite loop when loadNib, you should leave custom class as empty and put file owner as your custom class
uilabel attributed string tap detect
http://kalyanchakravarthy.net/blog/detect-touches-on-words-in-uilabels.html
text kit tutorial
https://www.raywenderlich.com/77092/text-kit-tutorial-swift