现用iOS故事版写一个登录注册的程序,现在设计的情况是点击登录按钮,能跳转到设置页面。
现我要达到的效果是,在输入用户名,密码后,登录成功,则跳转到设置页面。若密码错误(登录失败),则仍旧显示本地登录与注册页面,页面不跳转。
请教各位大神,要达到这样的效果,该怎样去解决呢?
黄舟2017-04-18 09:56:11
你的线拖错了,不要从按钮拖一个Segue,而是从vc(顶部三个小标记最左边的黄色)拖一个
, customize the Identifier of the segue, and then write the performSegueWithIdentifier method in your logical judgment verification success method.
怪我咯2017-04-18 09:56:11
When you click, make a judgment whether it is successful or not. Don’t use button events to jump directly. You can jump by handwriting. I guess it’s not very clear...