开发者

Accessing unknown 'view' component of a property

I get an 'Accessing unknown 'view' component of a property' error, when I'm trying this:

if (开发者_如何学JAVAself.newsViewController.view.superview == nil)

I have a synthesize and an import for NewsViewController. What I'm doing wrong?


Unfortunately, SO won't let me comment on your post, but if that:

@interface newsViewController : UIViewController {

is actually copy & pasted, it might just be a typo (lowercase 'n' instead of uppercase in NewsViewController)?


Another problem might be absence of import...

http://shirishranjit.com/blog1/?p=132

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜