【发布时间】:2010-05-10 02:46:42
【问题描述】:
我需要在 presentModalViewController 之后等待(不执行代码),直到模态视图被解除,这是可能的还是概念错误?
-(NSDictionary *)authRequired
{
//This view write the settings when dismissed (plist)
[self presentModalViewController:loginRegView animated:YES];
//Read from the setting file (plist) and send back (it's a delagate method)
NSMutableDictionary *ret=[[NSMutableDictionary alloc] init];
[ret setObject:[app.settings get:@"user"] forKey:@"user"];
[ret setObject:[app.settings get:@"pass"] forKey:@"pass"];
return ret;
}
【问题讨论】:
-
我不确定您的确切问题是什么。你能重述一遍吗?
-
在调用 presentModalViewController 后代码继续执行。我只想在关闭视图后执行该调用之后的行。
标签: iphone modal-view