我在viewcontroller1
,我想去viewcontroller2
,在1
我做的:viewControllers之間切換手動
UIViewController *sv=[[signUpView alloc]init];
[self addChildViewController:sv];
哪裏signUpView
是新的viewController class
(的view controller
子類) 沒有什麼反應。
我試過:[self.view removeFromSuperview];
哪些工作,並刪除我的看法。
- 我該怎麼做過渡到2
- 如何在1加2比回到1?
謝謝。
爲什麼你不使用pushviewcontroller或presentviewcontroller。爲了返回到V1,你會得到一個後退按鈕(pushviewcontroller)。或使用presentviewcontroller解除視圖控制器。 – Pawan