Search code examples
iosxcodeuiviewxib

"Also create xib file" button disabled


I have this problem with creating UIView's subclasses. Creating, for example, UIViewControllers or UITableViewCells is okay.

Why this happens?

UIView button disabled UIViewController is okay

I create view using cmd+N and Xcode Version 7.3.1:new file


Solution

  • You can add custom Xcode template that will fix this issue or add an existing template. Read more how to create and add it to Xcode here.

    Template can be found here.