Xcode 4: Missing File's Owner with Storyboard?
Solution 1
I assume you are used to nib files. Here, you just have to select the ViewController
and set it's class in the right side of the screen, to your own custom class. About the constraints, they can be disabled by unchecking the Use Autolayout
option in the first tab.
Solution 2
There is nothing called File's Owner
in story boards. File owner's job should be done by View Controller
in your case. If you have to connect IBOutlet
s and IBAction
s, connect them with View Controller
in the same way as you did with File Owner
in xib
Solution 3
I wanted to add a little gotcha in xcode 5 (don't think it's in earlier versions). Basically the file's owner is called "custom class" in the identity inspector. This can be hidden! Which might confuse someone. I don't think I noticed this in v4.
jww
Updated on June 18, 2022Comments
-
jww almost 2 years
I started a new project under Xcode 4.5. I accepted the default wizard settings, which included a storyboard.
I went to make connections and the File's Owner is missing.
I'm not sure what I did to end up in this configuration. As far as UI components, I added a scroll view in place of the original view. I had some trouble with Vertical Constraints, but I did not do anything drastic.
I tried to Google for the issue, but only got back two results: http://www.google.com/#q=xcode+4+%22missing+file+owner+%22.
How does one go about adding a file's owner to a storyboard.
UPDATE: For others who find this Stack Overflow article, its time to do Apple App's 101 again: Creating Your First iOS App. It looks like Hillegass and LeMarche have not yet caught up with the 6.0 SDK. There are no books on Amazon as of January, 2013.