(1) 对于接口,如果I进口类别(#import “Person.h”
,或者我是否使用@class(@class Person
)? 我应始终在上午使用进口吗?
(2) 如果我不使用汽车,我是否能够摆脱以下方法?
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
3) 在宣布可在接口内时,我是否需要将四舍五入物与不动产分开? 我看着这两种方法正在做。
Edit:
这些方法是什么?
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}