Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vlfm committed Oct 31, 2013
1 parent 6698c29 commit fc22b66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ ImageCropViewController
Lightweight crop view controller.

```objective-c
ImageCropViewController *cropVC = [[ImageCropViewController alloc] initWithImage:image widthFactor:widthFactor heightFactor:heightFactor];
ImageCropViewController *cropVC = [[ImageCropViewController alloc] initWithImage:image
widthFactor:widthFactor
heightFactor:heightFactor];
cropVC.cropFramePadding = 60;

cropVC.onCancelled = ^ {
Expand All @@ -18,7 +20,7 @@ ImageCropViewController *cropVC = [[ImageCropViewController alloc] initWithImage
[myViewController dismissViewControllerAnimated:YES completion:nil];
};

[myViewController presentViewController:cropVC animated:YES completion:nil];
[myViewController presentViewController:cropVC animated:YES completion:nil];
```
![Screenshot](https://raw.github.com/vlfm/ImageCropViewController/master/screenshots/s1.png "screenshot")
Expand Down

0 comments on commit fc22b66

Please sign in to comment.