2011-02-23 24 views
0

現在我在我的應用程序中使用Three20。我有一個問題,當我運行MainWindow.xib應用程序時,TTTableview類不被調用。但是如果沒有MainWindow.xib,它會調用TTTableview類。我不知道爲什麼會發生。請幫助我。iPhone中使用Three20的TTTableview類中的問題?

謝謝。

+1

請以添加更多的代碼爲我們提供進一步的幫助。 – fuzz 2011-08-26 00:34:44

回答

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