UITabBarController setting selected index on launch causing issues
[self performSelector:@selector(selectSavedTabBarIndex) withObject:nil afterDelay:0.0];
If I do either of the following it works great on the simulator but locks up the device requiring pressing the power button and waiting 10 seconds to close the app. There are no errors/crashlogs of the event when hooked up to a debugger.
[self selectSavedTabBarIndex];
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
[self selectSavedTabBarIndex];
Does anyone have any ideas why this would occur? Could it be an Apple bug?
iMac, Mac OS X (10.5.4)