I'm new to iPhone programming, followed some tutorials, and I'm now building my first app.
In my app I'm going to use multiple Views so I have 3 classes which extend UIViewController. To switch between these views I have a class called SwitchView which has properties of the 3 views and methods to show these. This SwitchView is a property of the appDelegate.
In one of the Views I have a buttons which calls a method in de corresponding class. This method now needs to switch views, so it needs to call a method in SwitchView.
This class doesn't has a instance of SwitchView and the methods are private. How can I call this method? Can I get the switchView instance from the appDelegate?
In my app I'm going to use multiple Views so I have 3 classes which extend UIViewController. To switch between these views I have a class called SwitchView which has properties of the 3 views and methods to show these. This SwitchView is a property of the appDelegate.
In one of the Views I have a buttons which calls a method in de corresponding class. This method now needs to switch views, so it needs to call a method in SwitchView.
This class doesn't has a instance of SwitchView and the methods are private. How can I call this method? Can I get the switchView instance from the appDelegate?