控件抖动
来源:互联网 发布:显卡更新驱动负优化 编辑:程序博客网 时间:2024/05/18 11:50
传入一个控件可以控制其抖动
-(void)loadShakeAnimationForView:(UIView*)view{ CALayer *lbl = [view layer]; CGPoint posLbl = [lbl position]; CGPoint y = CGPointMake(posLbl.x-10, posLbl.y); CGPoint x = CGPointMake(posLbl.x+10, posLbl.y); CABasicAnimation * animation = [CABasicAnimation animationWithKeyPath:@"position"]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [animation setFromValue:[NSValue valueWithCGPoint:x]]; [animation setToValue:[NSValue valueWithCGPoint:y]]; [animation setAutoreverses:YES]; [animation setDuration:0.08]; [animation setRepeatCount:3]; [lbl addAnimation:animation forKey:nil];}
0 0
- 控件抖动
- android 控件抖动
- Android控件抖动效果
- android控件抖动效果
- 控件抖动,so easy!
- iOS控件抖动
- 控件抖动动画
- //控件横向来回抖动
- Android窗口抖动和控件抖动
- wpf 控件的抖动效果
- 设置控件间隔 抖动 效果
- 控件抖动配合手机震动
- WPF 控件移动时抖动的问题
- 【Animation】实现某一个控件的抖动效果
- DropShadowEffect导致下拉框控件抖动
- android控件实现抖动的效果
- 使用Animation实现控件抖动效果
- 点击控件时的抖动动画集合
- 购物车结算
- 最小生成树之Kruskal算法
- 用户级线程和内核级线程的区别
- web_reg_save_param用法
- Python3-正则表达式-创建、匹配Regex对象
- 控件抖动
- iOS 让tableView分割线从边框顶端开始
- 指针数组和数组指针的区别
- tomcat 安装时出现 Failed to install Tomcat7 service
- 5-Scala对象(Class)和类(Object)
- 百度地图的key值和打包apk问题
- 得到当前项目路径
- python selenium使用Xpath定位
- Android设备如何加载.so文件以及如何适配