当我按下主页按钮时,我的应用程序会最小化而不是关闭。当我再次启动它时,应用程序会启动我在其上的最后一个视图控制器,而不是返回到第一个视图控制器。这是我的故事板:
-> A -> B -> C
在“C”中按主页并再次启动时,应用程序停留在“C”而不是“A”
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)dealloc {
[super dealloc];
}
- (void)viewDidUnload {
[self setEmail:nil];
[super viewDidUnload];
}