Ios

IOS ramp up


UI ramp up

Storyboard 

https://www.raywenderlich.com/113388/storyboards-tutorial-in-ios-9-part-1


https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson3.html


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

https://blog.lucaslouca.com/understanding-the-contentoffset-and-contentinset-properties-of-the-uiscrollview-class/


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://stackoverflow.com/questions/8482214/xcode-difference-between-pushviewcontroller-vs-segue-for-view-transition

http://timross.info/blog/2013/03/19/to-segue-or-not-to-segue/

http://stackoverflow.com/questions/30618172/how-to-send-data-back-by-popviewcontrolleranimated-for-swift


storyboard (new) vs nib  (old)


navigation item

http://stackoverflow.com/questions/24983629/xcode-storyboard-issue-button-bar-button-only-appears-at-the-bottom-of-a-table

http://stackoverflow.com/questions/6389094/adding-same-button-to-all-view-controllers-in-uinavigationcontroller

http://stackoverflow.com/questions/35619015/uinavigationcontroller-in-storyboard-with-custom-uitoolbar-xib-fails

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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值