Skip to content

Commit

Permalink
Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Mar 20, 2018
1 parent c18666a commit 7f91586
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
Binary file modified SJBackGRProject/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions SJBackGRProject/SJBackGRProject.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
TargetAttributes = {
77D9B7621F7E941A00E35746 = {
CreatedOnToolsVersion = 8.3.3;
DevelopmentTeam = DB5B5F2RH5;
DevelopmentTeam = U5A7L7SMNP;
ProvisioningStyle = Manual;
};
A6A0A8FC20410F2B003DB0A0 = {
Expand Down Expand Up @@ -839,14 +839,14 @@
baseConfigurationReference = 39202E5F7055D8AC447FC6B4 /* Pods-SJBackGRProject.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = DB5B5F2RH5;
DEVELOPMENT_TEAM = U5A7L7SMNP;
INFOPLIST_FILE = SJBackGRProject/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.SanJiang.SJBackGRProject;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "acd2453e-e396-4ccf-bf56-508276824c6c";
PROVISIONING_PROFILE_SPECIFIER = SanJiangDevelopment;
PROVISIONING_PROFILE = "ca8186e4-0d11-4c23-9f2f-50f3a29199fd";
PROVISIONING_PROFILE_SPECIFIER = WildcardProfile;
};
name = Debug;
};
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion SJFullscreenPopGesture.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "SJFullscreenPopGesture"
s.version = "1.3.7.2"
s.version = "1.3.7.3"
s.summary = "fullscreen pop gestures."

# This description is used to generate tags and improve search results.
Expand Down
14 changes: 7 additions & 7 deletions SJFullscreenPopGesture/UINavigationController+SJVideoPlayerAdd.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,19 @@ - (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
if ( UIGestureRecognizerStateFailed == gestureRecognizer.state ||
UIGestureRecognizerStateCancelled == gestureRecognizer.state ) return NO;
UIGestureRecognizerStateCancelled == gestureRecognizer.state ) return NO;

else if ( ([otherGestureRecognizer isMemberOfClass:NSClassFromString(@"UIScrollViewPanGestureRecognizer")] ||
[otherGestureRecognizer isMemberOfClass:NSClassFromString(@"UIScrollViewPagingSwipeGestureRecognizer")])
&& [otherGestureRecognizer.view isKindOfClass:[UIScrollView class]] ) {
[otherGestureRecognizer isMemberOfClass:NSClassFromString(@"UIScrollViewPagingSwipeGestureRecognizer")])
&& [otherGestureRecognizer.view isKindOfClass:[UIScrollView class]] ) {
return [self SJ_considerScrollView:(UIScrollView *)otherGestureRecognizer.view
gestureRecognizer:(UIPanGestureRecognizer *)gestureRecognizer
otherGestureRecognizer:otherGestureRecognizer];
}
else if ( [otherGestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]] ) {
return NO; // pop手势不触发
}

// 除 pan 手势, 其他手势同时触发
else if ( [otherGestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]] ) {
return NO;
}
return YES;
}

Expand Down
2 changes: 1 addition & 1 deletion SJNavigationPopGesture.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "SJNavigationPopGesture"
s.version = "1.3.7.2"
s.version = "1.3.7.3"
s.summary = "fullscreen pop gestures."

# This description is used to generate tags and improve search results.
Expand Down
8 changes: 3 additions & 5 deletions SJNavigationPopGesture/SJNavigationPopGesture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -482,16 +482,14 @@ extension UINavigationController : UIGestureRecognizerDelegate {
if ( gestureRecognizer.state == UIGestureRecognizerState.failed ||
gestureRecognizer.state == UIGestureRecognizerState.cancelled ) {
return false
}

}
else if ( otherGestureRecognizer.isMember(of: NSClassFromString("UIScrollViewPanGestureRecognizer")!) == true ||
otherGestureRecognizer.isMember(of: NSClassFromString("UIScrollViewPagingSwipeGestureRecognizer")!) == true ||
otherGestureRecognizer.isMember(of: UIScrollView.self) == true ) {
otherGestureRecognizer.isMember(of: NSClassFromString("UIScrollViewPagingSwipeGestureRecognizer")!) == true
&& otherGestureRecognizer.isKind(of: UIScrollView.self) == true ) {
let scrollView = otherGestureRecognizer.view as! UIScrollView
let panGesture = gestureRecognizer as! UIPanGestureRecognizer
return SJ_considerScrollView(scrollView, panGesture, otherGestureRecognizer)
}

else if ( otherGestureRecognizer.isKind(of: UIPanGestureRecognizer.self) ) {
return false
}
Expand Down

0 comments on commit 7f91586

Please sign in to comment.