I've declared a property in a view (created by interface builder, if it matters) and am trying to set the value from the view's controller – like so:
self.view.url = someURL;
That gives this error:
Request for Member 'url' in something not a structure or union
I have included the header for the view in the controller's .m file, but I'm probably just doing something wrong, but I don't know what – any ideas?
The view code:
@interface PDFView : UIView {
NSURL *url;
}
@property (nonatomic, retain) NSURL *url;
@end
@implementation PDFView
@synthesize url;