Image, View or ImageView show in big frame with Animation

UIImage, UIImageView, UIView

UIImage *img = [UIImage imageNamed:@”funny-love.jpg”];

    UIImageView *imgVw = [[UIImageView alloc]init];

    imgVw.frame = CGRectMake(100, 100, 100, 100);

    [self.view addSubview:imgVw];

    [UIView animateWithDuration:0.5 delay:0 options:0 animations:^{

        NSLog(@”starting animiation!”);

        imgVw.backgroundColor = [UIColor blackColor];

        imgVw.image = img;

        [imgVw setFrame:CGRectMake(100, 100, 200, 200)];

    }completion:^(BOOL finished){

        

    }];

Leave a comment