I've been browsing some answers here and I get two different suggestions:
- add in init. Example in this answer
- add in
ViewDidLoad
. Suggested in this answer
Which one is the current best practice? The second answer seems to be older (2010), so I wonder if it's an old, no-longer-suggested, practice?