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
精彩评论