-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom View not showing in storyboard #71
Comments
The @IBDesignable agent most likely uses a different delegate to initialize, not the AppDelegate. The default language isn't set there.
You can setup the language anywhere in the method, but I opted to set it before calling super, in order to avoid any complications that might arise there.
|
The @IBDesignable will be removed in the next releases as it's deprecated |
Hi,
I am using this library and managed to call localiz() after awakeFromNib() method is called.
Everything works fine on the simulator. but when I create custom views (@IBDesignable component) and add them to the ViewController on the storyboard, they cannot be rendered and show errors. I debug the component and it crash on localiz() line and say that default language not set, although I've added the default language on AppDelegate.
Can you suggest what is the problem and how can I solve this?
The text was updated successfully, but these errors were encountered: