- Fix editor dismiss picker
This commit is contained in:
parent
1bff59846f
commit
2974ccc4d9
@ -24,7 +24,7 @@ PODS:
|
||||
- FBSnapshotTestCase/Core (~> 2.0)
|
||||
- Specta (~> 1.0)
|
||||
- FBSnapshotTestCase/Core (2.1.4)
|
||||
- PNImagePickerViewController (1.0):
|
||||
- PNImagePickerViewController (1.0.2):
|
||||
- CLImageEditor/AllTools
|
||||
- DGActivityIndicatorView
|
||||
- PureLayout
|
||||
@ -58,7 +58,7 @@ SPEC CHECKSUMS:
|
||||
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
|
||||
"Expecta+Snapshots": dcff217eef506dabd6dfdc7864ea2da321fafbb8
|
||||
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
|
||||
PNImagePickerViewController: 38f4dff617354431e0b6071a52bd3136b79e3ef3
|
||||
PNImagePickerViewController: 418255d2d3b65cc52d9a47f891a831e8c9d11d6f
|
||||
PureLayout: f08c01b8dec00bb14a1fefa3de4c7d9c265df85e
|
||||
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "PNImagePickerViewController",
|
||||
"version": "1.0",
|
||||
"version": "1.0.2",
|
||||
"summary": "PNImagePickerViewController is a fork of jacobsieradzki/JSImagePickerController with iOS8+ PhotoKit support.",
|
||||
"homepage": "https://github.com/giuseppenucifora/PNImagePickerViewController",
|
||||
"license": "MIT",
|
||||
@ -9,7 +9,7 @@
|
||||
},
|
||||
"source": {
|
||||
"git": "https://github.com/giuseppenucifora/PNImagePickerViewController.git",
|
||||
"tag": "1.0"
|
||||
"tag": "1.0.2"
|
||||
},
|
||||
"platforms": {
|
||||
"ios": "8.0"
|
||||
|
||||
4
Example/Pods/Manifest.lock
generated
4
Example/Pods/Manifest.lock
generated
@ -24,7 +24,7 @@ PODS:
|
||||
- FBSnapshotTestCase/Core (~> 2.0)
|
||||
- Specta (~> 1.0)
|
||||
- FBSnapshotTestCase/Core (2.1.4)
|
||||
- PNImagePickerViewController (1.0):
|
||||
- PNImagePickerViewController (1.0.2):
|
||||
- CLImageEditor/AllTools
|
||||
- DGActivityIndicatorView
|
||||
- PureLayout
|
||||
@ -58,7 +58,7 @@ SPEC CHECKSUMS:
|
||||
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
|
||||
"Expecta+Snapshots": dcff217eef506dabd6dfdc7864ea2da321fafbb8
|
||||
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
|
||||
PNImagePickerViewController: 38f4dff617354431e0b6071a52bd3136b79e3ef3
|
||||
PNImagePickerViewController: 418255d2d3b65cc52d9a47f891a831e8c9d11d6f
|
||||
PureLayout: f08c01b8dec00bb14a1fefa3de4c7d9c265df85e
|
||||
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "PNImagePickerViewController"
|
||||
s.version = "1.0.1"
|
||||
s.version = "1.0.2"
|
||||
s.summary = "PNImagePickerViewController is a fork of jacobsieradzki/JSImagePickerController with iOS8+ PhotoKit support."
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
|
||||
@ -551,11 +551,12 @@
|
||||
|
||||
- (void)imageEditor:(CLImageEditor*)editor didFinishEditingWithImage:(UIImage*)image
|
||||
{
|
||||
if ([delegate respondsToSelector:@selector(imagePicker:didSelectImage:)]) {
|
||||
[delegate imagePicker:self didSelectImage:image];
|
||||
}
|
||||
|
||||
[self dismissAnimated:YES];
|
||||
[editor dismissViewControllerAnimated:YES completion:^{
|
||||
if ([self->delegate respondsToSelector:@selector(imagePicker:didSelectImage:)]) {
|
||||
[self->delegate imagePicker:self didSelectImage:image];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user