Skip to content

Commit

Permalink
解决iOS10发送图片失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ligang committed Sep 20, 2016
1 parent 436be67 commit 44147d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
15 changes: 8 additions & 7 deletions LGPhotoBrowser.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -802,32 +802,33 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer: Zhou qianren (C9LR3LDBA9)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Zhou qianren (C9LR3LDBA9)";
CODE_SIGN_IDENTITY = "iPhone Developer: peng Oliver (GW4AS6447M)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: peng Oliver (GW4AS6447M)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = LGPhotoBrowser/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.company.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = cn.jj.TKLobby;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e38d76ee-fb66-4ed9-9383-a081d1eb9069";
PROVISIONING_PROFILE = "53c8944c-39e0-4493-a0ba-77da0fbf0506";
};
name = Debug;
};
44290B291BDF0E3D003D6E79 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer: Zhou qianren (C9LR3LDBA9)";
CODE_SIGN_IDENTITY = "iPhone Developer: peng Oliver (GW4AS6447M)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: peng Oliver (GW4AS6447M)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = LGPhotoBrowser/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.company.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = cn.jj.TKLobby;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e38d76ee-fb66-4ed9-9383-a081d1eb9069";
PROVISIONING_PROFILE = "53c8944c-39e0-4493-a0ba-77da0fbf0506";
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,8 @@ - (void) cancelBtnTouched{
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void) sendBtnTouched {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[NSNotificationCenter defaultCenter] postNotificationName:PICKER_TAKE_DONE object:nil userInfo:@{@"selectAssets":self.selectAssets,@"isOriginal":@(self.isOriginal)}];
NSLog(@"%@",@(self.isOriginal));
});
[[NSNotificationCenter defaultCenter] postNotificationName:PICKER_TAKE_DONE object:nil userInfo:@{@"selectAssets":self.selectAssets,@"isOriginal":@(self.isOriginal)}];
NSLog(@"%@",@(self.isOriginal));
[self dismissViewControllerAnimated:NO completion:nil];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ - (void)showPickerVc:(UIViewController *)vc{

- (void) addNotification{
// 监听异步done通知
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(done:) name:PICKER_TAKE_DONE object:nil];
});
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(done:) name:PICKER_TAKE_DONE object:nil];
}

#pragma mark - 监听点击Done按钮
Expand Down

2 comments on commit 44147d6

@zhangzhe17
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你的相机单拍有问题!

@gang544043963
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

能详细说明一下吗?自定义相机确实做得不太好,建议用系统相机

Please sign in to comment.