开发者

Accessing unknown 'view' component of a property

开发者 https://www.devze.com 2023-01-12 04:27 出处:网络
I get an \'Accessing unknown \'view\' component of a property\' error, when I\'m trying this: if (开发者_如何学JAVAself.newsViewController.view.superview == nil)

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

精彩评论

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