MKDropdownMenu icon indicating copy to clipboard operation
MKDropdownMenu copied to clipboard

Dynamic row height!

Open fisfej opened this issue 9 years ago • 4 comments

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

fisfej avatar Apr 11 '17 09:04 fisfej

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

maxkonovalov avatar Apr 11 '17 15:04 maxkonovalov

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

the-freshlord avatar Mar 16 '18 14:03 the-freshlord

@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.

maxkonovalov avatar Mar 16 '18 14:03 maxkonovalov

ok

the-freshlord avatar Mar 16 '18 19:03 the-freshlord