Just start to using Xcode. I made an IBOutlet from UIButton to have a possibility to change title with changing a localization setting. I try this code to do this
_loginButton.titleLabel.text = NSLocalizedString(@"Login", nil);
But this code does not set the button title. Do I need to use another kind of property?
Thank you very much for answering!
You need to supply a
UIControlStateto set the title for.