Vocab

Paste_Image.png

](http://upload-images.jianshu.io/upload_images/3084709-11d2c9956ebbfbf0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

Exclamation point indicating a default value exist for this variable

  • weak keyword - the object is not in memory thus prevent reference cycle (system keep deallocating memories to object). The Superview maintains the strong reference, and the subviews maintains the weak

  • actions - defines the application response. When event occurs, the action method is executed. Created the same way outlets are created

ctrl + drag can be done from the reverse way, dragging code to UI

Pattern

  • target action pattern - one object sends a message to another object when event occurs; action method calling on the target/sender and pass in the target/sender

Swift related

  • Enumeration - a dot abbreviation for known type


  • Present - execute on self object, asks view controller to present the custom view controller. completion can create callback

Paste_Image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容