I have this problem with creating UIView's
subclasses. Creating, for example, UIViewControllers
or UITableViewCells
is okay.
Why this happens?
I create view using cmd+N
and Xcode Version 7.3.1:
Create the View and the Cocoa Touch Class separately, but with the same name, then set the Class of the xib to the name of the file.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With