2016-09-13 81 views
-1

我想從Google地圖infoWindow推到另一個VC。因此,我將segue從託管Google地圖的vc連接到另一個vc。 當我打電話IOS之間谷歌地圖infoWindow和VC segue之間

[self performSegueWithIdentifier:@"infoView2Store" sender:self], 

我收到以下異常消息:

Receiver (<MapView: 0x7fde105f3ac0>) has no segue with identifier 'infoView2Store' 

我正確設置Segue公司標識符。我可能會錯過什麼?

+0

OMG!我陷入了這一個星期,現在不僅可以得到幫助,而且我得到了低估。 – HSH

回答

0

我花了近一個星期來解決這個問題,但找不到出路。最後,我從故事板改爲IB。現在去調用新的VC就可以了:

StoreViewController *controller = [[StoreViewController alloc] initWithNibName:@"StoreView" bundle:nil]; 
[self.navigationController pushViewController:controller animated:YES]; 

我仍然很想知道是否有人可以通過segue從infoWindow推送到新的VC。 OMG!