I’m trying to make a basic method (function) in objective C and am getting some errors, here is the code:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
[self setupWebView];
}
- (void)setupWebView {
NSLog(@"Testing");
}
I get this error:
Receiver type ‘Reading’ for instance message does not declare a method with selector ‘setupWebView’
Any idea what I’m doing wrong?
Did you declare
-(void)setupWebViewin the header for your class? It seems like the compiler doesn’t think that your class implements it. If you add it to your header, it should fix the problem.