美文网首页
简单操作

简单操作

作者: 呉囲仌犮yzx | 来源:发表于2017-06-20 17:53 被阅读9次

1.打电话功能实现

NSURL *url = [NSURL URLWithString:@"tel://13681489824"];

[[UIApplication sharedApplication] openURL:url];

2.创建一个简单的多度动画(立体翻转)

CATransition *anima = [CATransition animation];

anima.type = @"cube";   //若想设置动画时间 anima.duration = 5;

[self.view.layer addAnimation:anima forKey:nil];

3.实现一组图片的播放

NSMutableArray *arrM = [NSMutableArray array];

for (int i = 1; i <= 30; i++){

      NSString *name = [NSString stringWithFormat:@"img_%02d", i];

      [arrM addObject:[UIImage imageNamed:name];

}

self.imageContainer.animationImages = arrM;  //若需设置播放时间 self.imageContainer.animationDuration = 5;

//若不设置重复次数就会一直播放,若需设置重复次数  self.imageContainer.animationRepeatCount = 1;

self.imageContainer startAnimating];

相关文章

  • 简单操作

    1.打电话功能实现 NSURL *url = [NSURL URLWithString:@"tel://13681...

  • 股票操作很简单,就4条均线

    股票操作很简单,就4条均线 股票操作很简单,就4条均线 股票操作很简单,你就按照这几点操作,你就能赚钱,啥都用不看...

  • 二叉树

    一些关于二叉树的简单操作 创建节点 简单操作

  • 单链表操作

    简单的单链表操作 下面是操作类

  • git简单操作

    简单使用 重要概念 已提交(mommitted) 该文件已经被安全地保存在本地数据库中了已修改(modified)...

  • Nginx简单操作

  • git简单操作

    使用 git init 在目录中创建新的 Git 仓库 使用git clone [url]拷贝一个 Git 仓库到...

  • git简单操作

    新建文件 demo cd demo git clone 项目地址 a.新增文件 text.txt 1.git ad...

  • mongodb简单操作

    mongodb Ubuntu Mac 启动 直接启动 注意事项:启动失败数据库不存在 创建文件夹 /data/db...

  • Git简单操作

    git clone git@github.com:niniaibu/java.git git status 查看修...

网友评论

      本文标题:简单操作

      本文链接:https://www.haomeiwen.com/subject/lonoqxtx.html