当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - 'file owner' in xcode 4.6 issue / metaio configuration

问题描述:

I am new in iPhone programming, I am configuring metaio SDK and within the installation instruction I have to do something with 'file owner' which I've never heard about that as I just studied iOS 5.

could you please how can I do this part in xcode 4.6?

'We will add new UIView element to xib for both iPad and iPhone, and rename the custom class impelemtation for EAGLView. Then link this new GLView to glView Outlet from File's Owner as shown on the image below.'

网友答案:

I am aware of three ways to connect a view in the Storyboard or Interface builder to the outlet:

1) Use the assistant mode to put the storyboard and the header file side by side. Drag from the small circle on the left side of the @property to the UIView target in the storyboard.

2) Drag from the view controller (or other relevant class that has the outlet) to the target in the story board, e.g. UIView.

3) Drag from the view controller (or other relevant class that has the outlet) to the correct object, e.g. UIView, in the hierarchy.

网友答案:

The File's Owner is the instance of UIViewController class that you are working on.

If you select your XIB file, to the left of the Interface Builder, you should have a hollow looking cube at the top of the little strip, select it. Once you've done that you should see in your Utilities window on the right, as to what class is set as the File's Owner.

分享给朋友:
您可能感兴趣的文章:
随机阅读: