实用程序应用程序完成按钮
由于某种原因,在我的实用程序应用程序中,当我按下翻转视图左上角的“完成”按钮时,没有任何反应。应该返回主视图的代码是什么?是这样的吗:
[[NSUserDefaults standardUserDefaults] synchronize];
[self.delegate flipsideViewControllerDidFinish:self];
编辑:(完成方法)
我知道按下按钮时也会执行该方法;这是奇怪的部分。
- (IBAction)done:(id)sender
{
//[[NSUserDefaults standardUserDefaults] synchronize];
[self.delegate flipsideViewControllerDidFinish:self];
NSLog(@"Done Called");
}
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] synchronize];
[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");
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我意识到我已经从我的委托方法中删除了 selfmissModalViewController 语句......多么愚蠢!
I realized that I had deleted the self dismissModalViewController statement from my delegate method... How stupid!