1
我的應用程序是tabbar(+導航)應用程序。在FirstViewController中,我調用onModalView。如何將數據從模態ViewController傳輸到父級ViewController?
-(void) onFilter
{
FilterViewController* controller =[[[FilterViewController alloc] initWithNibName:@"Filter" bundle:[NSBundle mainBundle]] autorelease];
[self.navigationController presentModalViewController:controller animated:YES];
}
用戶可以在FilterViewController中選擇許多過濾器。我想將用戶偏好轉移到FirstViewController。我怎樣才能做到這一點 ?