简体   繁体   English

在iPhone中使用Three20的TTTableview类中的问题?

[英]Problems in TTTableview class using Three20 in iPhone?

Now I am using Three20 in my apps. 现在,我在应用程序中使用Three20 I have a problem, when I run the application with MainWindow.xib , the TTTableview class isn't called. 我有一个问题,当我使用MainWindow.xib运行应用程序时,未调用TTTableview类。 But without MainWindow.xib it would call the TTTableview class. 但是如果没有MainWindow.xib ,它将调用TTTableview类。 I don't know why it's happening. 我不知道为什么会这样。 Please help me out. 请帮帮我。

Thanks. 谢谢。

In your AppDelegate code 在您的AppDelegate代码中

delete the mainWindow.xib 删除mainWindow.xib

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary 

    *)launchOptions {  

        if (![navigator restoreViewControllers]) {
                [navigator openURLAction:[TTURLAction actionWithURLPath:kAppRootURLPath]];
            }

    }

In main.m 在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;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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