Open PotatoPudding opened 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];
view.popupDelegate = self; 这句应该就可以了
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];