maxkonovalov / MKDropdownMenu

🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
MIT License
527 stars 83 forks source link

Dynamic row height! #25

Open fisfej opened 7 years ago

fisfej commented 7 years ago

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

maxkonovalov commented 7 years ago

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

the-freshlord commented 6 years ago

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

maxkonovalov commented 6 years ago

@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 commented 6 years ago

ok