我需要等待(不要執行代碼)在presentModalViewController之後,直到模態視圖被解散,這是可能的或者它是一個概念錯誤?在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;
}
我不確定你確切的問題是什麼。你能重申它嗎? – 2010-05-10 02:49:35
在調用presentModalViewController之後代碼執行繼續。 我想在解散視圖後才執行該線路。 – Cesar 2010-05-10 03:48:34