Skip to content

Commit

Permalink
Simplify Example code by setting a property in xib
Browse files Browse the repository at this point in the history
  • Loading branch information
yas375 committed Nov 10, 2015
1 parent 0a6d53a commit bfe9117
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions Example/Example/CZViewController.m
Expand Up @@ -64,13 +64,4 @@ - (IBAction)toggleCropPreviewSwitch:(id)sender
[self.cropPreviewSwitch setOn:!self.cropPreviewSwitch.on animated:YES];
}

#pragma mark - UIViewController

- (void)viewDidLoad
{
[super viewDidLoad];

self.imageView.clipsToBounds = YES;
}

@end
2 changes: 1 addition & 1 deletion Example/Example/en.lproj/CZViewController.xib
Expand Up @@ -41,7 +41,7 @@
</barButtonItem>
</items>
</toolbar>
<imageView contentMode="scaleAspectFit" translatesAutoresizingMaskIntoConstraints="NO" id="10">
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" translatesAutoresizingMaskIntoConstraints="NO" id="10">
<rect key="frame" x="0.0" y="0.0" width="600" height="556"/>
<animations/>
<gestureRecognizers/>
Expand Down

0 comments on commit bfe9117

Please sign in to comment.