2016-05-17 103 views

回答

0

你可以使用 Segues它很容易使用。例如 :你可以用你的方法Objective-C代碼裏面

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 
{ 
    // Make sure your segue name in storyboard is the same as this line 
    if ([[segue identifier] isEqualToString:@"YOUR_SEGUE_NAME_HERE"]) 
    { 
     // Get reference to the destination view controller 
     YourViewController *vc = [segue destinationViewController]; 

     // Pass any objects to the view controller here, like... 
     [vc setMyObjectHere:object]; 
    } 
} 

在上面的鏈接,你擁有所有的解釋如何將它... :)希望它幫助。

相關問題