发布于 2015-12-31 05:08:11 | 170 次阅读 | 评论: 0 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

iOS苹果移动操作系统

苹果iOS是由苹果公司开发的移动操作系统。苹果公司最早于2007年1月9日的Macworld大会上公布这个系统,最初是设计给iPhone使用的,后来陆续套用到iPod touch、iPad以及Apple TV等产品上。


iOS常用动画代码 

    UIImageView* bolingbolingImageView = [[UIImageView alloc]init];
    [self.view addSubview:bolingbolingImageView];
    //设置动画的frame
    bolingbolingImageView.frame = CGRectMake(0, 0, 30, 30);
    
    //动画各帧图片
    bolingbolingImageView.animationImages = [NSArray arrayWithObjects:
                                             [UIImage imageNamed:@"bolingboling1.png"],
                                             [UIImage imageNamed:@"bolingboling2.png"],
                                             [UIImage imageNamed:@"bolingboling3.png"],
                                             [UIImage imageNamed:@"bolingboling4.png"],
                                             [UIImage imageNamed:@"bolingboling5.png"],nil];
    //动画持续时间
    [bolingbolingImageView setAnimationDuration:0.6f]; 
    //动画重复次数
    [bolingbolingImageView setAnimationRepeatCount:1];
    //开始动画
    [bolingbolingImageView startAnimating];


最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务