【发布时间】:2017-11-14 13:11:21
【问题描述】:
我有以下视图控制器: 当我单击“Go to gray”时,它会使用 SWRevealViewController 加载灰色 viewController。
这是我的代码:
#import "SWRevealViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (IBAction)gotoGray:(id)sender
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
SWRevealViewController *swrController = [storyboard instantiateViewControllerWithIdentifier:@"SWRevealViewController"];
[self presentViewController:swrController animated:YES completion:nil];
}
我的问题是如何将数据从蓝色视图控制器传递到灰色(前 SWRevealViewController)?
非常感谢您的帮助。
【问题讨论】:
标签: ios objective-c iphone uiviewcontroller