홈 버튼을 누르면 내 앱이 닫히지 않고 최소화됩니다. 다시 시작하면 앱이 첫 번째보기 컨트롤러로 돌아가는 대신 마지막 뷰 컨트롤러를 실행합니다. 이것은 내 스토리 보드입니다 :iPhone의 홈 버튼을 누르면 내 앱이 닫히지 않고 최소화
-> A -> B -> 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];
}
의 "C"에 남아
를 참조하십시오, 이것은 또한 또한
UIApplicationExitsOnSuspend
키입니다
YES
에
Application does not run in background
을 설정하여 질문은 무엇입니까? iOS 4 이후로 iOS 앱의 정상적인 동작이라는 것을 알고 계십니까? – rckoenes내 파트너는 iOS4도 사용하며 앱을 사용해 본 후 앱이 종료되는 대신 종료됩니다 ... – jomafer
홈 버튼을 눌러 다시 시작하면 앱이 첫 번째보기 컨트롤러를 표시하도록합니다 ... – jomafer