-
Notifications
You must be signed in to change notification settings - Fork 3
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
Not working with storyboard #1
Comments
When used with Storyboard,
The last two is straight forward as they are public functions. But the first two are tricky because they are private property/method. So, we need to redeclare them as public (Credit: http://jerrymarino.com/2014/01/31/objective-c-private-instance-variable-access.html).
Now, redo the missing initialization and call this function from
|
After using it for a while, I found that this library is quite buggy. For example, if I set a badge with nil text (no value), it will be hidden forever. I have to access the badgeView (via the above hack to the supposed private array) to unhidden it before updating the text. When the viewController is disappears (for example, a navigation controller event), on return, the badges are gone/hidden/invisible. Can't find a way to show them programatically. But user tapping any other tab on the segment control (any except current one), the badges will come back. |
Badge properties are not added when using with segmented control in storyboard. Only the badge text appears without any circle background.
The text was updated successfully, but these errors were encountered: