Upvote:5

Aprove answer

This is impossible.

The best solution you can achieve is either based on:

  1. Container views

    • having a dedicated view XIB which is then included into every controller
  2. Outlets defined in superclass but copy-pasting everything in Interface Builder.

    • you can avoid code duplication but you won't avoid duplication in IB.

Upvote:0

No, it is not possible to inherit view controllers with .xib files. However, you can use Container View for reusing subviews for your so called child views. You have to create common subviews used in different view controllers in a container view.Click here


Credit Goes to: stackoverflow.com

Related question with same questions but different answers