Suggested approach: We all know that view controllers can grow to hideous proportions, so I think the best approach here is to acknowledge that and present child view controllers as one solution – they provide the ability to carve off parts of your UI into smaller chunks, retaining all the same functionality but making your code smaller and simpler. It’s also worth mentioning how child view controllers can also make our code more reusable, because the child can be used in other parent view controllers.
Estimated difficulty: Easy
See the full list of iOS interview questions
Link copied to your pasteboard.