Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
itouch2 committed Jun 10, 2015
1 parent 206a648 commit ba5de8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions PhotoTweaks/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ @interface AppDelegate () <UIImagePickerControllerDelegate, UINavigationControll
@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.delegate = self;
Expand All @@ -40,10 +41,11 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking

- (void)photoTweaksController:(PhotoTweaksViewController *)controller didFinishWithCroppedImage:(UIImage *)croppedImage
{
[controller.navigationController dismissViewControllerAnimated:YES completion:nil];
[controller.navigationController popViewControllerAnimated:YES];
}

- (void)photoTweaksControllerDidCancel:(PhotoTweaksViewController *)controller {
- (void)photoTweaksControllerDidCancel:(PhotoTweaksViewController *)controller
{
[controller.navigationController popViewControllerAnimated:YES];
}

Expand Down
4 changes: 3 additions & 1 deletion PhotoTweaks/PhotoTweaks/PhotoTweaksViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
Called on image cropped.
*/
- (void)photoTweaksController:(PhotoTweaksViewController *)controller didFinishWithCroppedImage:(UIImage *)croppedImage;
/**
Called on cropping image canceled
*/
- (void)photoTweaksControllerDidCancel:(PhotoTweaksViewController *)controller;


@end

0 comments on commit ba5de8c

Please sign in to comment.