i have a problem in my app. in an tabbarcontroller i have a login view where i can enter a website. if the login data is correct the view switches to another view. works fine.
now my problem is, when i switch the tab and enter the login view tag again and try to login again, the view does not load.
Whats here the problem? should i dismissmodalviewcontroller when the view is unload or something else???
thanks for help,
brush51
EDIT1:
hi robin, in my login view is an button which calls a webview whit this code:
ShopWebViewController *shopWVC = [[ShopWebViewController alloc] initWithNibName:@"ShopWebViewController" bundle:nil];
shopWVC = [[ShopWebViewController alloc] initWithNibName:@"ShopWebViewController" bundle:nil];
shopWVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[logView presentModalViewController:shopWVC animated:YES];
And now when i exit the tabbar item where this logview is and enter it again, then the first view appears and the login/presentmodalviewcontroller doesnt work again.
cause of this i think that i may have to dismissmodalviewcontroller but dont know if this is right or not.
When you hit the login button:
Then in your view controller that has just been presented modally, somewhere in your code (perhaps when login is successful?) you need to dismiss it with