Skip to content
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

Changing DropDownItem textLabel stuff not doing anything #30

Closed
Raymond26 opened this issue Jul 19, 2016 · 6 comments
Closed

Changing DropDownItem textLabel stuff not doing anything #30

Raymond26 opened this issue Jul 19, 2016 · 6 comments

Comments

@Raymond26
Copy link

Is there a reloadView() but for DropDownItem modifications?

I have the following:

let font = UIFont.init(name: "Avenir Next Medium", size: 15.0)
var items = [IGLDropDownItem]()
for type in options {
            let item = IGLDropDownItem()
            item.textLabel.font = font
            item.textLabel.textAlignment = .Center
            item.showBackgroundShadow = false
            item.text = type
            items.append(item)
}
dropdown.dropDownItems = items
dropdown.menuText = menuText
dropdown.type = .Normal
dropdown.menuButton.textLabel.font = font
dropdown.menuButton.textLabel.textAlignment = .Center
dropdown.menuButton.showBackgroundShadow = false
dropdown.reloadView()
self.view.addSubview(dropdown)
self.view.bringSubviewToFront(dropdown)

For my menuButton, the textLabel style is changing properly, but for the items themselves, the textLabel style is not changing at all. Am I missing something?

I also tried dropdown.reloadView() after self.view.addSubview(dropdown)

@bestwnh
Copy link
Owner

bestwnh commented Jul 21, 2016

You won't miss anything. This is an issue. I will fix it ASAP. For now you can just use theinitWithCustomView with your own view.

@santilorenzo
Copy link

I have the same issue. Will the fix work out of the box in the next release or some additional code will be required?

@Raymond26
Copy link
Author

Thanks @bestwnh. Has the fix been released?

@bestwnh
Copy link
Owner

bestwnh commented Aug 18, 2016

Sorry guys, a bit busy these days. I will make a fix before weekend. If you won't see it on time, just keep post message on this issue to notify me.

@bestwnh
Copy link
Owner

bestwnh commented Aug 22, 2016

Hi Guys, 1.6.0 is release and fix the issue.

@bestwnh bestwnh closed this as completed Aug 22, 2016
@Raymond26
Copy link
Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants