You can use it like this:
@interface JKRViewController : JKRBubbleViewController - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { UITouch *touch = touches.anyObject; CGPoint point = [touch locationInView:self.view]; JKRViewController *controller = [JKRViewController new]; controller.startPoint = point; controller.bubbleColor = [UIColor whiteColor]; [self presentViewController:controller animated:YES completion:nil]; }
利用自定义的transitioningDelegate来实现百度外卖首页搜索界面弹出的效果