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;

}

你可能感兴趣的:(ios)