#import <UIKit/UIKit.h> @class PageViewController2; @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) PageViewController2 *pageView2; @end
#import "AppDelegate.h" #import "PageViewController2.h" @implementation AppDelegate - (void)dealloc { [_window release]; [_pageView2 release]; [super dealloc]; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. self.pageView2 = [[[PageViewController2 alloc] initWithNibName:@"PageViewController2" bundle:nil] autorelease]; self.window.rootViewController = self.pageView2; [self.window makeKeyAndVisible]; return YES; }
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท