Attempting to set a view's property results in an error: Request for Member … not a structure or …
Posted
by Mark McDonald
on Stack Overflow
See other posts from Stack Overflow
or by Mark McDonald
Published on 2010-05-15T00:37:04Z
Indexed on
2010/05/15
0:44 UTC
Read the original article
Hit count: 898
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;
© Stack Overflow or respective owner