3
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
}
|
||||
|
||||
- (void)didChangeTransitionToState:(PresentationState)state {
|
||||
// 每次状态切换完成后刷新朝向
|
||||
[self.indicator applyPresentationState:state];
|
||||
// // 每次状态切换完成后刷新朝向
|
||||
// [self.indicator applyPresentationState:state];
|
||||
}
|
||||
|
||||
- (PanModalHeight)shortFormHeight {
|
||||
@@ -86,33 +86,43 @@
|
||||
return NO; // 在 short 状态禁止继续往下拉(锁住最小高度)
|
||||
}
|
||||
|
||||
/// 允许时间穿透
|
||||
- (BOOL)allowsTouchEventsPassingThroughTransitionView {
|
||||
return YES;
|
||||
}
|
||||
|
||||
-(BOOL)shouldAutoSetPanScrollContentInset{
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
- (UIScrollView *)panScrollable {
|
||||
return self.hotVC.tableView;
|
||||
}
|
||||
|
||||
// 可选:完全不允许拖拽关闭(避免被拉到底消失)
|
||||
- (BOOL)allowsDragToDismiss {
|
||||
return NO;
|
||||
}
|
||||
|
||||
//
|
||||
//- (BOOL)showDragIndicator{
|
||||
// return NO;
|
||||
//}
|
||||
|
||||
//
|
||||
// 点背景不关闭
|
||||
- (BOOL)allowsTapBackgroundToDismiss {
|
||||
return NO;
|
||||
}
|
||||
|
||||
// 出现时不做上推动画(瞬时到位)
|
||||
- (NSTimeInterval)transitionDuration {
|
||||
return 0;
|
||||
}
|
||||
// 出现时不做上推动画(瞬时到位)开了下拉动画有问题
|
||||
//- (NSTimeInterval)transitionDuration {
|
||||
// return 0;
|
||||
//}
|
||||
|
||||
// 可选:关闭触觉反馈,避免出现时的轻微震动
|
||||
- (BOOL)isHapticFeedbackEnabled {
|
||||
return NO;
|
||||
}
|
||||
//// 可选:关闭触觉反馈,避免出现时的轻微震动
|
||||
//- (BOOL)isHapticFeedbackEnabled {
|
||||
// return NO;
|
||||
//}
|
||||
|
||||
|
||||
#pragma mark - UI
|
||||
|
||||
Reference in New Issue
Block a user