Fix bug
This commit is contained in:
1 parent
5485d2b74b
commit
c8c35f8df6
3 files changed
+8
-3
No files matched your search
@@ -15,6 +15,7 @@
|
|||||||
@property (nonatomic) BOOL didSetupConstraints;
|
@property (nonatomic) BOOL didSetupConstraints;
|
||||||
@property (nonatomic, strong) UIButton *button;
|
@property (nonatomic, strong) UIButton *button;
|
||||||
@property (nonatomic, strong) UIImageView *imageView;
|
@property (nonatomic, strong) UIImageView *imageView;
|
||||||
|
@property (nonatomic, strong) PNImagePickerViewController *imagePickerController;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@@ -66,9 +67,11 @@
|
|||||||
|
|
||||||
- (void) showPicker {
|
- (void) showPicker {
|
||||||
|
|
||||||
PNImagePickerViewController *imagePicker = [[PNImagePickerViewController alloc] init];
|
if (!_imagePickerController) {
|
||||||
imagePicker.delegate = self;
|
_imagePickerController = [[PNImagePickerViewController alloc] init];
|
||||||
[imagePicker showImagePickerInController:self animated:YES];
|
_imagePickerController.delegate = self;
|
||||||
|
}
|
||||||
|
[_imagePickerController showImagePickerInController:self animated:YES];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@
|
|||||||
if (photoImage) {
|
if (photoImage) {
|
||||||
[_photoImageView setImage:photoImage];
|
[_photoImageView setImage:photoImage];
|
||||||
[_loadingSpinner stopAnimating];
|
[_loadingSpinner stopAnimating];
|
||||||
|
[_loadingSpinner setAlpha:0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -488,6 +488,7 @@
|
|||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
_isVisible = NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user