Now I am using Three20 in my apps. I have a problem, when I run the application with MainWindow.xib
, the TTTableview
class isn't called. But without 开发者_如何学GoMainWindow.xib
it would call the TTTableview
class. I don't know why it's happening. Please help me out.
Thanks.
In your AppDelegate code
delete the mainWindow.xib
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
*)launchOptions {
if (![navigator restoreViewControllers]) {
[navigator openURLAction:[TTURLAction actionWithURLPath:kAppRootURLPath]];
}
}
In main.m
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"YOURAppDelegate");
[pool release];
return retVal;
}
精彩评论