[UIView animateWithDuration:0.5 delay:0 usingSpringWithDamping:0.5 initialSpringVelocity:10.0 options:UIViewAnimationOptionCurveEaseIn animations:^{
self.view.superview.top -= FilterViewHeight;
} completion:^(BOOL finished) {
self.isShown = YES;
if ([self.delegate respondsToSelector:@selector(filterViewControllerDidShow:)]) {
[self.delegate filterViewControllerDidShow:self];
}
}];+ (UIImagePickerController *)tp_getCameraPickeWithParentViewController:(id<UINavigationControllerDelegate, UIImagePickerControllerDelegate, TPOverlayCameraViewDelegate>)parentViewController {
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePickerController.delegate = parentViewController;
imagePickerController.showsCameraControls = NO;
- https://github.com/jaredsinclair/JTSImageViewController
- https://github.com/ruslanskorb/RSKImageCropper
- https://github.com/kishikawakatsumi/PEPhotoCropEditor
- https://github.com/TimOliver/TOCropViewController
- https://github.com/heitorfr/ios-image-editor
- https://github.com/myang-git/iOS-Image-Crop-View
OlderNewer