开发者

Problems in TTTableview class using Three20 in iPhone?

开发者 https://www.devze.com 2023-02-13 11:11 出处:网络
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 TT

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号