I believe this is happening to you because the TTNaviagtor broken on iOS 5. see https://github.com/facebook/three20/pull/719/files . Have you tried using the same code on iOS 4 with the same result?
My recommendation to you is to stop using TTNaviagtor . You can still use the three20 library by clicking and pressing TTViewController in the native ios method.
Here is an example of replacing TTNaviagtor in application deletion:
@interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow* _window; TTBaseNavigationController* _masterNavController; WebPageController* _web1Controller; WebPageController* _web2Controller; } @property(nonatomic, retain) UIWindow* window; @property(nonatomic, retain) TTBaseNavigationController* masterNavController; @property(nonatomic, retain) WebPageController* web1Controller; @property(nonatomic, retain) WebPageController* web2Controller;
and
/////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// @implementation AppDelegate @synthesize window = _window; @synthesize masterNavController = _masterNavController; @synthesize web1Controller = _web1Controller; @synthesize web2Controller = web2Controller; /////////////////////////////////////////////////////////////////////////////////////////////////// - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _window = [[UIWindow alloc] initWithFrame:TTScreenBounds()]; TTViewController* controller = [[[MasterViewController alloc] init] autorelease]; _masterNavController = [[TTBaseNavigationController alloc] initWithRootViewController:controller]; [_window addSubview:_masterNavController.view]; } [_window makeKeyAndVisible]; return YES; }
then you can click and put any TTViewController (or your own TTViewController subclasses) into _masterNavController . Personally, I think that TTNavigator is a bad design model, and the apple has developed its navigation system in different ways.
aporat
source share