
ViewModel = View ?? Model; Mode -> ViewModel -> View
iOS 开发中的 ViewModelMVVM 这个模式可能大家耳朵都听出茧了,但却没有多少人真正在项目中应用过,毕竟 Cocoa Touch 整体是基于“MVC”的,没有 Controller 根本干不了活。而...
##Dynamic animation This is essentially animating using physics so we assign gravity an...
Animation is timing-based thing, and NSTimer obviously is a timing-based class. NSTimer...
Create a push behavior with a certain magnitude and angle. And look what I've got. Set ...
A lazy property doesn't get initialized until someone accesses it. Things initialized t...
上次讲解了基本的语法和一些Swift的小技巧。这期我们来看几个最基本的数据结构:数组,字符串,集合和字典。 数组 数组是最基本的数据结构。Swift中改变了以前Objecti...
前言 在iOS开发中,autolayout是一个很强大的东西,用好了,能让你事半功倍,用不好,各种蛋疼。不过autolayout是很容易学的,笔者当时仅仅看了一个多小时的资料...