2

中央のコンテナをドラッグして引き出しが閉じたことを検出する方法はありますか? 引き出しが閉じられるたびに特定のアクションを実行したい..

4

4 に答える 4

2

使用できます

-(void)setGestureCompletionBlock:(void(^)(MMDrawerController * drawerController, UIGestureRecognizer * gesture))gestureCompletionBlock;

ジェスチャが完了したときに通知されるコールバック ブロックを設定します。このブロックでは、drawerController にクエリを実行して、現在何が開いているかを確認します。

/**
 Sets a callback to be called when a gesture has been completed.

 This block is called when a gesture action has been completed. You can query the `openSide` of the `drawerController` to determine what the new state of the drawer is.

 @param gestureCompletionBlock A block object to be called that allows the implementer be notified when a gesture action has been completed.
 */
于 2015-09-11T08:31:16.227 に答える