-
Notifications
You must be signed in to change notification settings - Fork 42
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
Current state is not set properly when segmented control changes width #12
Comments
You can save the state in a UserDefault to persist data between sessions. |
It's obvious, I did it with NSUserDefaults, but when I terminate the app state hadn't saved |
For anyone searching for this, you have to set currentState in viewDidLoad but you have to call [self.view layoutIfNeeded] right before !
|
@dashvlas Did you resolve it? currentState is not working. |
@lennondong Unfortunately no :( |
@dashvlas thank for your reply. Finally I resolve it. Now I have use it in my app. |
@dashvlas Sorry for the inconvenience, it was not possible to maintain the library for a long time because of access issues. |
I want to save selected tab so that when application will be closed and opened again previously selected tab will be in selected state. How can I do this? It's always launched with first tab.
I used currentState property with delegate methods, but nothing works.
Please, help
The text was updated successfully, but these errors were encountered: