我正在使用喜欢facebook iOS app风格的MFSideMenu,它运行正常!是否可以在左1/3视图区域而不是全视图屏幕中启用MFSideMenu进行平移手势?
答案 0 :(得分:1)
您需要使用委托IIViewDeckControllerDelegate
所以设置
[deckController setPanningMode:IIViewDeckDelegatePanning];
并实施:
- (BOOL)viewDeckController:(IIViewDeckController*)viewDeckController shouldPan:(UIPanGestureRecognizer*)panGestureRecognizer
{
if ([panGestureRecognizer locationInView:self.view].x<20) {
return YES;
}
return NO;
}