My AppDelegate_Phone class has the method -(void)doSomething. How can I call that from within a View Controller viewController?
I’ve tried:
[[[UIApplication sharedApplication] delegate] doSomething];
No luck.
doSomething not found in protocol
Edit. The action is being performed, but the Warning persists in XCode. What does the warning mean?
You have to cast the delegate to your custom delegate class then call the doSomething. Code example is below: