December 2018
Intermediate to advanced
414 pages
10h 19m
English
Just as we have controllers dedicated to managing views—the view controllers—you should consider using controllers to help communicate with complex model layers. Code bases that suffer from Massive View Controller syndrome often exhibit the following pathologies in their view controllers:
Let's first start with an interface for a message composer that exhibits Massive View Controller syndrome:
class MassiveViewController : UIViewController { var textView = UITextView() var sendButton = UIButton() override func viewDidLoad() { super.viewDidLoad() /* layout the views */ /* design the views */ } func sendTapped(sender: ...Read now
Unlock full access