UITabBarViewController Crash
I am novice to iOS programming. I 开发者_如何学JAVAhave created a public repository of the code at github the url of the repository is git@github.com:abhinavtyagi/paparazzi.git
I am facing a problem in using UITabBarController. The application have two tabs in the main view with each tabView containing a navigation controller.
The application consists of three views as follows (for each tabview) #1# first View shows the types of images (landscape, flowers, planets) #2# second view uses table view to list the images and their names. #3# when selected any cell in the previous(2nd) view, the image is shown in full screen in the next view. This works fine if we use back buttons for the navigation. But the application crashes when we move to first view directly from the third BY TAPPING THE TAB BAR TWICE when in third view(full screen pic).
I am not able to understand why its happening. Any help in this regard will be highly appreciated.
Thanks Abhinav
when you tap on tab bar button twice.... it calls viewDidLoad
of its viewController
(in your case rootViewController of navigationController
)....... may be this is causing the crash/ as everything will be reloaded.....
精彩评论