Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I connect the File's Owner to new Views in iOS SDK?

Tags:

iphone

ios4

I am working on an iPhone SDK project using Xcode 4 Preview. I am in the IFB view and have deleted the default view icon and brought in two new views which I have named Portrait and Landscape. I should be able to control drag from the File's Owner to the two views to connect them, but the usual HUD does not appear and I cannot connect them. There is no code relevant to this task so I can't share that and a screenshot would be meaningless. I would appreciate any assistance on getting them to connect.

thanks!

like image 650
forrest Avatar asked Sep 08 '10 14:09

forrest


People also ask

What is file's owner in Xcode?

About the File's Owner One of the most important objects in a nib file is the File's Owner object. Unlike interface objects, the File's Owner object is a placeholder object that is not created when the nib file is loaded. Instead, you create this object in your code and pass it to the nib-loading code.

What is file's owner?

Initially, a file's owner is identified by the user ID of the person who created the file. The owner of a file determines who may read, write (modify), or execute the file.


1 Answers

First, check that the class File's Owner is associated with has IBOutlet slots with the appropriate types for your new views. If File's Owner is not the right class, you can change it in the inspector panel. If the class lacks the slots, add them to the header and then try again.

like image 124
Kaelin Colclasure Avatar answered Oct 16 '22 19:10

Kaelin Colclasure