iphone - Attempting to set a view's property results in an error: Request for Member … not a structure or … -


I have declared a property in a view (made by the interface builder, if this is the case) and value set Trying to do the controller of the view - like:

  self.view.url = someURL;  

returns this error:

  Request for some 'member' URLs in a structure or association  

I'm the controller. I have included the header for the footage in the file, but I'm probably doing something wrong, but I do not know - any thoughts?

View code:

  @interface PDFView: UIView {NSURL * url; } @protecti (non-nominal, retaining) NSDrawl * URL; @end @implementation PDFView @ synthesize url; I suspect that "self.view" type  UIView  

(because it is inherited from UIViewController ), PDFView not so, the compiler does not believe that it has the "url" property.

What happens if you do?

  PDFView * aView = self.view; AView.url = someURL;  

Comments