나는이 서브 뷰목적 C : 열린 두 번째 시간 문제 하위 뷰를
-(IBAction) closeListClient {
[self.view removeFromSuperview];
}
이 괜찮은지를 닫 하위 뷰를
- (IBAction) showList:(id) sender {
if(list == nil){
list = [[ListClient alloc] initWithNibName:@"ListClient" bundle:nil];
[list setDelegate:self];
[self.view addSubview:list.view];
}
}
를 열려면이 코드이 코드를 처음으로,하지만 내가 subview를 열려고 할 때 두 번째로, 그것은 작동하지 않습니다, 왜?
이 작업은 가능하지만'showList'가 호출 될 때마다 ListClient 객체가 누설됩니다. – mvds