我有4个viewcontroller,如home,登录,注册,忘记密码Viewcontroller's。我为所有视图控制器设置了故事板标识。在我的每个屏幕中我有1或2个按钮,我需要以编程方式连接其他视图控制器替换seague 这是我关于屏幕的全部详细信息,buttonname (动作),目的地VC屏幕
Home screen = sign in button = signinvc ( storyboard identity Vc's)
sign Up button = SignUpvc( storyboard identity Vc's)
SignIn VC = NotRegisterBtn = SignUpvc( storyboard identity Vc's)
forgot password Button = forgotvc( storyboard identity Vc's)
SignUp VC = AlreadyReg_Button = Sign In VC( storyboard identity Vc's)
Forgot VC = CancelBtn = SignIn vc( storyboard identity Vc's)
如何完全以编程方式完成?
更新:
-(void) methodone {
}
-(void) methodtwo {
}
现在我怎么能显示这个两个按钮方法动作的presentviewmodal vc ..第一种方法应该转到signVc
,第二种方法应该转到signInVC