maxkonovalov / MKDropdownMenu

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

Max row number or max menu height ? #41

Closed BeQuietLee closed 6 years ago

BeQuietLee commented 6 years ago

Hello, I found this lib recently, and it helped me quite a lot ! However, I'm wondering that how could I set the max row number to display ( or max menu height ) ? So that if the row number exceeds the limit, the items can be scrolled in the menu.

BeQuietLee commented 6 years ago

Hi there, I have found the solution. Just overwrite this method, which returns the max num of shown rows in menu:

selini commented 6 years ago

I have try it like that but do not work. I have 30 items in dropdown and i can see only three.

-(NSInteger) dropdownMenu:(MKDropdownMenu *)dropdownMenu maximumNumberOfRowsInComponent:(NSInteger)component{
    return 5;
}