属性“视图;在类型"x"的对象上找不到 [英] Property 'View; not found on object of type "x"

查看:37
本文介绍了属性“视图;在类型"x"的对象上找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在Xcode SDK iOS 5上为iPhone开发一个Radio应用程序,并且我目前正在使用苹果提供的StichedStreamPlayer中的某些元素.我遇到的问题是 ApplicationDidFinishLaunching 部分

I'm currently developing an Radio application for the iPhone on Xcode SDK iOS 5, and I'm currently using some elements from the StichedStreamPlayer that apple has made available. The problem i am having problem with is the ApplicationDidFinishLaunching part

这是我的代码:

appDelegate.m

#import "iGamerFMAppDelegate.h"

@class iGamerFMStreamingViewController;

@implementation iGamerFMAppDelegate

@synthesize window;

@synthesize iGamerFMViewController;

- (void)applicationDidFinishLaunching:(UIApplication *)application

{

    //Adds the streaming view controller once finished loading

    [window addSubview:iGamerFMViewController.view];

    [window makeKeyAndVisible];

}

-(void)dealloc

{

    [window release];

    [iGamerFMViewController release];

    [super dealloc];

}

@end

我得到一个错误-在类型为"iGamerFMViewController"的对象上找不到属性视图"我已经尝试过从重写它到从另一个项目复制和粘贴的所有操作,但它仍然无法正常工作.你知道为什么会这样吗?

I get an error - Property 'View' not found on object of type "iGamerFMViewController" I have tried everything from rewriting it to copy and paste from another project and it still doesnt work. Do you know why this is happening?

推荐答案

确保为视图控制器选择了正确的类.

Make sure you have the right class selected for your view controller.

这篇关于属性“视图;在类型"x"的对象上找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆