I know i asked this before, but this time i try to explain in more details.
In my app delegate I have 2 Forms (view controller with nib files)
I have methods in my app delegate which are being used to navigate through the forms.
For example in one of my forms i have a button that calls a method on my app delegate and it suppose to close the current view and open another one
Code:
@implementation Form1
- (IBAction) ButtonClicked:(id)sender
{
HiAppDelegate *appDelegate = (HiAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate OpenForm2];
}
@end
this is how the OpenForm2 look like ()Inside my delegate
Code:
-(void) OpenForm2
{
[form1.view removeFromSuperview];
[window addSubView:form2.view];
}
When i call this method from inside the delegate it works fine but when i call it from my form1 the application gets stuck with no exception.
Any idea what the problem is?
Is this a good way of navigation? (I do not want to have any navigation bar)
If not how else can i navigate through my views?
Thanks in advance