Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for iOS 8+, and fix UI using auto layout #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

haxpor
Copy link

@haxpor haxpor commented Oct 6, 2015

About deprecations

Use UIAlertController class instead of UIActionSheet when possible.
Added above with remain backward compatibility as original. For the case of GKImagePicker to show action sheet, provided with 2 methods to choose from which are

  • Intend for iOS < 8.0 presentPickerFrom:(UIViewController*)viewController
  • Intend for iOS >= 8.0 presentPickerWithAnchor:(UIView*)anchor from:(UIViewController*)viewController

Also fixed calling deprecated method from old API i.e. presentModalViewController, and dismissModalViewControllerAnimated:

In case of GKImageCropper, provided with run-time checking whether UIAlertController is available, thus use it or otherwise use UIActionSheet.

About more support, and UI fixes

Fixed layout to be consistent across all devices screen via auto layout. Also changed UIImageView's content mode to be aspect fit. Added launch screens for all portrait orientation. The latter is to let devices detect the proper and correct screen size.

According to support at least 8.0, fixed deprecated UIActionSheet with UIAlertController for both places showing action sheet menu selection;

* Taking photo or import from gallery
* Rotate image in crop screen
Added back the original implementation of GKImagePicker regarding to UIActionSheet in both GKImagePicker, and GKImageCropper class.

Changed presentPicker method signature to presentPickerFrom: to explicitly accept UIViewController from where it will present picker view controller.

Also added deprecated macro for presentPickerFrom: method as it originally has supported since iOS 6.0.
Added launchscreens to let iPhone be able to detect a proper screen size.
Also fixed showing image in UIImageView with aspect fit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant