Cant work out how to call a method from a sub view. I have a MainViewController which loads a subview. I want to access one of the MainViewControllers method from this subclass. I though it would be [super methodname] or similar but after trying for a few hours. getting a bit annoyed. Im missing something obvious.
any advice
Cheers
If I'm reading this write, and your calling a method from a another class you need to create an instance of the class, in the header, then in the m call it followed by summit like this [classname methordname] if your calling a method from another method in same class the it's [self methordname].
ReplyDeleteIf your still stuck tomo (as away from the mac) give me a shout as I have done this when using sqllite calling the read and write methods from the app delegate.