just
just

Reputation: 2010

Can't connect File's owner to View

I have a ViewController.h and ViewController.m and a MyViewController.xib file.

Now I would like to create a new xib with this name: MyViewController_47.xib for the iPhone 6.

After I created the new xib file, I set the File's Owner to ViewController and I don't see that the View outlet.

My ViewController.h was inherited from BaseViewController which is inherited from GAITrackedViewController

I really don't know how to connect the View to File's Owner.

Upvotes: 0

Views: 2254

Answers (1)

Mohd Khalil Ur Rehman
Mohd Khalil Ur Rehman

Reputation: 169

Select your nib file MyViewController_47.xib -> File's Owner -> In side panel select 3rd option (3rd tab) -> Custom Class (class -> your view controller name).

Follow this image

If this doesn't work then re-name your ViewController to NewViewController and try the same process.

Upvotes: 3

Related Questions