开发者

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

I am working on an iPhone SDK project using Xcode 4 Preview. I am in the IFB view and have deleted the defaul开发者_StackOverflow中文版t 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜