SoFunction
Updated on 2025-04-12

Summary of IOS Initialization Controller Implementation Method

Summary of IOS Initialization Controller Implementation Method

1.ViewControllViewController method

#import ""
#import ""

@interface AppDelegate ()

@property(nonatomic,strong) ViewController *viewController;

@end

@implementation AppDelegate


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

  //Initialize the controller   = [[ViewController alloc]init];
  //Initialize window   =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
  //Set the controller   = ;

  return YES;
}

2.ViewControllViewController and xib method

#import ""

#import ""

@interface AppDelegate ()

@property(nonatomic,strong) ViewController *viewController;
@property(nonatomic,strong) XibViewControllViewController *xibControllViewController;

@end

@implementation AppDelegate


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

  //Initialize the controller   = [[XibViewControllViewController alloc]initWithNibName:@"XibViewControllViewController" bundle:nil];
  //Initialize window   =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
  //Set the controller   = ;


  return YES;
}

If you have any questions, please leave a message or go to the community of this site to exchange and discuss. Thank you for reading. I hope it can help you. Thank you for your support for this site!