<分区>
总是,当我创建 ViewController 时,我有这个:
#import "SomeVCC.h"
@interface SomeVC ()
@end
@implementation SomeVC
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
而且我经常需要一些更干净的版本,像这样:
#import "SomeVC.h"
@interface SomeVC ()
@end
@implementation SomeVC
#pragma mark - LifeCycle
- (void)viewDidLoad
{
[super viewDidLoad];
}
@end
如何更改苹果的或创建我自己的 viewContoller 模板?我使用 alcatraz 创建了一些模板,但它们不适合我。