IOS

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;

}

posted @ 2015-04-21 15:33  docomo  阅读(136)  评论(0编辑  收藏  举报