喇叭动画,图片播放

喇叭动画

#pragma mark - 喇叭动画

-(void)showSpeaker{

    //喇叭

    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(200, 100, 20, 20)];

    

    UIImage *image1 = [UIImage imageNamed:@"home_icon_radio1"];

    UIImage *image2 = [UIImage imageNamed:@"home_icon_radio2"];

    UIImage *image3 = [UIImage imageNamed:@"home_icon_radio3"];

    imageView.animationImages = @[image1,image2,image3];

    imageView.animationDuration = 1;

    

    [self.view addSubview:imageView];

    [imageView startAnimating];

    

}

你可能感兴趣的:(IOS学习)