For some reason, in my utility application, when I press the "done" button on the top left corner of the flipside view, nothing happens. What is the code that is supposed to return to the main view? Is it this:
[[NSUserDefaults standardUserDefaults] synch开发者_JS百科ronize];
[self.delegate flipsideViewControllerDidFinish:self];
Edit: (done method)
I know the method is being executed when the button is pressed as well; that is the weird part.
- (IBAction)done:(id)sender
{
//[[NSUserDefaults standardUserDefaults] synchronize];
[self.delegate flipsideViewControllerDidFinish:self];
NSLog(@"Done Called");
}
I realized that I had deleted the self dismissModalViewController statement from my delegate method... How stupid!
精彩评论