我改变了我的按钮,从故事板调用另一个ViewController,使用JSon从网站下载一些东西。现在我需要在代码之后调用相同的ViewController ......
可能这是一个简单的东西,但我没有得到它
感谢
答案 0 :(得分:0)
我不确定这是你在找什么,但看看这个。
假设你有两个控制器,ViewController1和ViewController2。完成ViewController 1中的JSON解析之后,让我们说[self finishedGetJSON],你可以这样做;
- (void) finishedGetJSON(yourargument*) arg {
ViewController1 * screen = [self.storyboard instantiateViewControllerWithIdentifier:@"yourIdentifier"];
[self.navigationController pushViewController:screen animated:YES];
那是你在找什么?