WMPageController icon indicating copy to clipboard operation
WMPageController copied to clipboard

有个问题请教一下

Open Vinceless opened this issue 7 years ago • 3 comments

在存在多个menu时候,有些menu在没有数据时候,会显示占位图,想不让他滑动,或者把高度变小,有比较好的解决方法么=。=?

Vinceless avatar Jan 02 '19 01:01 Vinceless

  • (WMMenuItem *)menuView:(WMMenuView *)menu initialMenuItem:(WMMenuItem *)initialMenuItem atIndex:(NSInteger)index { menu.userInteractionEnabled = NO; return initialMenuItem; } 这个方法可以让菜单点击不能滚动。

1277393484 avatar Jan 02 '19 02:01 1277393484

😄我表述有点错误,是menuView下面的contentView,有些会没有数据,我想把他高度改小.- (CGRect)pageController:(WMPageController *)pageController preferredFrameForContentView:(WMScrollView *)contentView 这个代理方法又只在初始化才调用,所以看看有没有别的方法

Vinceless avatar Jan 02 '19 03:01 Vinceless

占位图如果是用EmptyDataSet这个分类,默认就是不能滚动的。

1277393484 avatar Jan 06 '19 15:01 1277393484