login - iPhone App Logout -


i've app layout:

when open app see login screen. log in , see tabbar 3 tabs. (the loginview displayed presentmodalview in appdelegate of tabbar).

in third tab there logout button. want when logout button pressed app delete nsuserdefaults , shows loginview again. , if login again login screen disappear , see first tab of tabbar.

how can this? thanks!

do follows,

1)place login view in first view controller.

2)place tabbar controller in second view controller.

3)store second viewcontroller instance in appdelegate(this used navigation).

4)now when logout button pressed,use stored instance navigate ur view.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -