加载过程
卸载view过程
下面是用代码加载view的示例代码
- (void)loadView |
{ |
CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame]; |
UIView *contentView = [[UIView alloc] initWithFrame:applicationFrame]; |
contentView.backgroundColor = [UIColor blackColor]; |
self.view = contentView; |
|
levelView = [[LevelView alloc] initWithFrame:applicationFrame viewController:self]; |
[self.view addSubview:levelView]; |
} |