开发者

Utility application done button

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜