开发者

Utility application done button

开发者 https://www.devze.com 2023-04-03 04:05 出处:网络
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?

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

精彩评论

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