0

现在我在我的应用程序中使用Three20。我有一个问题,当我使用 运行应用程序时MainWindow.xibTTTableview没有调用该类。但没有MainWindow.xib它会调用TTTableview类。我不知道为什么会这样。请帮帮我。

谢谢。

4

1 回答 1

0

在您的 AppDelegate 代码中

删除 mainWindow.xib

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

    *)launchOptions {  

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

    }

在 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;
}
于 2011-11-29T10:47:41.697 回答