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

Dynamic row height! #25

Open
fisfej opened this issue Apr 11, 2017 · 4 comments
Open

Dynamic row height! #25

fisfej opened this issue Apr 11, 2017 · 4 comments

Comments

@fisfej
Copy link

fisfej commented Apr 11, 2017

How can I set dynamic row heights based on contents (i.e UILabel)

@maxkonovalov
Copy link
Owner

Hi @fisfej, unfortunately this is currently impossible, you can only set the height for all rows per component.

@the-freshlord
Copy link

@maxkonovalov Can the height of the drop-down view be set as well?

@maxkonovalov
Copy link
Owner

@eman6576 you can use the delegate methods - (CGFloat)dropdownMenu:(MKDropdownMenu *)dropdownMenu rowHeightForComponent:(NSInteger)component in combination with - (NSInteger)dropdownMenu:(MKDropdownMenu *)dropdownMenu maximumNumberOfRowsInComponent:(NSInteger)component to get the overall desired height.

@the-freshlord
Copy link

ok

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

No branches or pull requests

3 participants