liufengting / FTPopOverMenu

FTPopOverMenu is a pop over menu for iOS which is maybe the easiest one to use. Supports both portrait and landscape. It can show from any UIView, any UIBarButtonItem and any CGRect.
MIT License
1.04k stars 170 forks source link

how to set the popover as scrollable #3

Closed sai487 closed 8 years ago

sai487 commented 8 years ago

if we are having the more amount of data, then how to set the static size data to scrollable dat.

liufengting commented 8 years ago

There are two lines of code you need to change as follows. I hope it solves the problem.

line 103: _menuTableView.scrollEnabled = NO;
->
_menuTableView.scrollEnabled = YES;

line 424: CGFloat menuHeight = FTDefaultMenuRowHeight * self.menuArray.count + FTDefaultMenuArrowHeight; ->
CGFloat menuHeight = FTDefaultMenuRowHeight * A + FTDefaultMenuArrowHeight;// A is how many cells you wanna show at the first time, or maybe you wanna some certain height.

liufengting commented 8 years ago

check out the newest change at https://github.com/liufengting/FTPopOverMenu/blob/master/CHANGELOG.md

I have added this feature.

sai487 commented 8 years ago

Thank You, for sending me the reply to the doubt I sent to you.

On Mon, Aug 15, 2016 at 9:38 AM, Liu Fengting notifications@github.com wrote:

check out the newest change at https://github.com/ liufengting/FTPopOverMenu/blob/master/CHANGELOG.md

I have added this feathure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/liufengting/FTPopOverMenu/issues/3#issuecomment-239726022, or mute the thread https://github.com/notifications/unsubscribe-auth/AT7eqrpI7WYCB4n1Y2751YEQIhBRky2jks5qf-ZOgaJpZM4JjpV2 .

from Sai Krishna

sai487 commented 8 years ago

Once again thank you for the last reply And how to set the PopOver size according to the data content in the array. In the last reply, you said that, "A" is how many cells Or Row height. But how I change it(PopOver) to dynamic,according to the data. Thank You

On Tue, Aug 16, 2016 at 10:18 AM, sai krishna < saikrishna.tadavarthy@gmail.com> wrote:

Thank You, for sending me the reply to the doubt I sent to you.

On Mon, Aug 15, 2016 at 9:38 AM, Liu Fengting notifications@github.com wrote:

check out the newest change at https://github.com/liufengting /FTPopOverMenu/blob/master/CHANGELOG.md

I have added this feathure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/liufengting/FTPopOverMenu/issues/3#issuecomment-239726022, or mute the thread https://github.com/notifications/unsubscribe-auth/AT7eqrpI7WYCB4n1Y2751YEQIhBRky2jks5qf-ZOgaJpZM4JjpV2 .

from Sai Krishna

from Sai Krishna

liufengting commented 8 years ago

yesterday,I add scrollable feature, check out the latest code I hope it solves your problem

sai487 commented 8 years ago

yeah, It's working good.

On Tue, Aug 16, 2016 at 11:31 AM, Liu Fengting notifications@github.com wrote:

yesterday,I add scrollable feature, check out the latest code I hope it solves your problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/liufengting/FTPopOverMenu/issues/3#issuecomment-240010096, or mute the thread https://github.com/notifications/unsubscribe-auth/AT7eqth9el8CD1MeIMl81VT0nbEtnzozks5qgVIdgaJpZM4JjpV2 .

from Sai Krishna

liufengting commented 8 years ago

Thanks for this great suggestion. If you have any more questions, I'm here : )