I have this same piece of code in two different parts of my app. In one section it is executed perfectly, and in the other it is completely ignored. I ve put in a breakpoint and watched the program go through each line of this code without loading the next xib/class it is supposed to.
该守则是:
UIViewController *nextController = [[ClassNameViewController alloc] initWithNibName:@"MatchingView" bundle:nil];
[nextController performSelector:@selector(setDelegate:) withObject:self];
[self presentModalViewController:nextController animated:YES];
为什么会被忽视,而不是提出我的主计长的看法?