IBAction은 아무 것도하지 않습니다. 콘솔에 "Back"을 기록하여 연결이 정상적으로 이루어집니다. IBAction를이 내가 여기에 너무 많은 가정을하고 있지 않다 희망왜이 하위보기가 제거되지 않습니까?
-(IBAction)loadSettingsView:(id)sender;
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
[[NSBundle mainBundle] loadNibNamed:@"settingsView_iphone" owner:self options:nil];
} else {
[[NSBundle mainBundle] loadNibNamed:@"settingsView_ipad" owner:self options:nil];
}
[self.view addSubview:topView];
}
-(IBAction)loadMainView:(id)sender;
{
[topView removeFromSuperview];
NSLog(@"back");
}
무엇이 질문입니까? –
'topView '란 무엇이며 어떻게 할당됩니까? –
... IBAction은 어떤 작업을 수행하지 않습니까? – Daniel