Latest 1.0
Homepage https://github.com/vitoziv/VICMAImageView
License MIT
Platforms ios 6.0, requires ARC
Authors

VICMAImageView – Content Mode Animatable Image View

Change image view’s content mode with your animation!

demo.gif

Installation

CocoaPods

pod 'VICMAImageView', '~> 1.0'

Usage

Use VICMAImageView like a UIImageView

- (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

[UIView animateWithDuration:0.3
                     animations:^{
                         imageView.contentMode = UIViewContentModeScaleAspectFill;
                     }];

License

VICMAImageView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "VICMAImageView",
    "version": "1.0",
    "platforms": {
        "ios": "6.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Content Mode Animatable Image View, change image view's content mode with your animation!",
    "homepage": "https://github.com/vitoziv/VICMAImageView",
    "authors": {
        "Vito Zhang": "[email protected]"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/vitoziv/VICMAImageView.git",
        "tag": "1.0"
    },
    "source_files": "VICMAImageView/*.{h,m}"
}

Pin It on Pinterest

Share This