I’m getting a build error in the following:
[self presentModalViewController:tweetViewController animated:YES];
[self dismissModalViewControllerAnimated:YES];
because self isn’t applicable in the subclass. I’m essentially subclassing a subclass because I only want to call tweetViewController if a series of if statements are correct.
How do I handle ‘self’ in a subclass without importing all the other classes I want to call this subclass from?
If you are subclassing UIViewController then you just need to call the super’s implementation: