shmxybfq / TFPopup

🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
MIT License
244 stars 31 forks source link

设置了可以拖动为啥view 无法移动。交互也打卡了 #20

Open PotatoPudding opened 2 years ago

PotatoPudding commented 2 years ago

GeRenPKView view = [GeRenPKView getNibView:@"GeRenPKView"]; view.userInteractionEnabled = YES; view.backImage.userInteractionEnabled = YES; view.popupDelegate = self; TFPopupParam param = [TFPopupParam new]; param.offset = CGPointMake(0, 0); param.popupSize = CGSizeMake(kScreenWidth - 20 , 200); param.disuseBackgroundTouchHide = NO; param.dragEnable = YES; param.dragStyle = DragStyleFree; param.discernScrollEnable = YES; self.geRenPKView = view; [view tf_showScale:self.view offset:CGPointZero popupParam:param];

shmxybfq commented 2 years ago

view.popupDelegate = self; 这句应该就可以了