IOS

docomo發表於2015-04-21

IOS載入xib

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

{

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    // Override point for customization after application launch.

    self.window.backgroundColor = [UIColor whiteColor];

    [self.window makeKeyAndVisible];

    

    NSArray *views = [[NSBundle mainBundle] loadNibNamed:@"View" owner:self options:nil];

    [self.window addSubview:[views lastObject]];

    return YES;

}

相關文章