简体   繁体   English

iOS-解析登录-更改按钮标题

[英]iOS - Parse Login - Change Button Title

I can not change the title of the button Sign Up of the screen Log In. 我无法更改登录屏幕按钮的标题。

The self is PFLogInViewController . selfPFLogInViewController

self.logInView?.signUpButton?.setTitle("Test new String", forState: UIControlState.Normal)

I changed of other button, the same code. 我改变了其他按钮,相同的代码。 It works. 有用。

self.logInView?.logInButton?.setTitle("Entrar", forState: UIControlState.Normal)
self.logInView?.passwordForgottenButton?.setTitle("Esqueceu a Senha?", forState: UIControlState.Normal)

Any idea? 任何想法?

ParseUI uses internationalization: http://blog.parse.com/announcements/internationalization/ ParseUI使用国际化: http ://blog.parse.com/announcements/internationalization/

So maybe you should use localization to change the title as in the code implementation they maybe change the title even if you set it. 因此,也许您应该使用本地化来更改标题,因为在代码实现中,即使您设置了标题,它们也可能会更改标题。

Stackoverflow thread about this subject: Localization of ParseUI 关于此主题的Stackoverflow线程: ParseUI的本地化

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM