简体   繁体   中英

Problems in TTTableview class using Three20 in iPhone?

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 MainWindow.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;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM