I have searched around a lot, and dug through a couple of text books, but what I would really appreciate is a simple explanation of best practice to define UIView subclasses in an iOS app.
- If using a xib, where can I add/tweak the controls at the start of runtime?
- If building programmatically, should I do this in the ViewController (loadView?) or a separate UIView subclass? If the latter, how do I specify it's file's owener so that if it is added as a subview it knows who its controller is?
- What do you place in awakeFromNib, loadView, viewDidLoad, UIView.init, UIViewController.init, etc?
- What other methods do you frequently use?
I don't need super specific instructions - I am more looking for a quick reference guide that explains what kind of code is meant to live in each of the methods available.