https://github.com/vitoziv/vicmaimageview
Content Mode Animatable Image View, change image view's content mode with your animation!
https://github.com/vitoziv/vicmaimageview
imageview ios
Last synced: about 1 year ago
JSON representation
Content Mode Animatable Image View, change image view's content mode with your animation!
- Host: GitHub
- URL: https://github.com/vitoziv/vicmaimageview
- Owner: vitoziv
- License: mit
- Created: 2014-12-31T06:16:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-13T06:45:07.000Z (over 10 years ago)
- Last Synced: 2025-04-10T19:47:28.365Z (about 1 year ago)
- Topics: imageview, ios
- Language: Objective-C
- Size: 71.3 KB
- Stars: 190
- Watchers: 6
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# VICMAImageView - Content Mode Animatable Image View
Change image view's content mode with your animation!

## Installation
**CocoaPods**
`pod 'VICMAImageView', '~> 1.0'`
## Usage
Use VICMAImageView like a UIImageView
```Objc
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *image = [UIImage imageNamed:@"1.jpg"];
VICMAImageView *imageView = [[VICMAImageView alloc] initWithImage:image];
imageView.frame = CGRectMake(0, 0, 100, 100);
[self.view addSubview:imageView];
}
```
Animate contentMode in animation block
```Objc
[UIView animateWithDuration:0.3
animations:^{
imageView.contentMode = UIViewContentModeScaleAspectFill;
}];
```
##License
VICMAImageView is available under the MIT license. See the LICENSE file for more info.