移动UIView的方法
来源:互联网 发布:启发式算法的应用案例 编辑:程序博客网 时间:2024/05/17 20:25
方法1:
- (void) moveAlert: (UIAlertView *) alertView{ CGContextRef context = UIGraphicsGetCurrentContext(); NSLog(@"%@", context); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];[UIView setAnimationDuration:0.25f];if (![self isLandscape])alertView.center = CGPointMake(160.0f, 180.0f);else alertView.center = CGPointMake(240.0f, 90.0f);[UIView commitAnimations];[[alertView viewWithTag:TEXT_FIELD_TAG] becomeFirstResponder];}
方法2:
- (void) moveAlert: (UIAlertView *) alertView{ CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, -130.0); [alertView setTransform:myTransform];}
0 0
- 移动UIView的方法
- 移动UIView的坐标
- IOS-UIView的移动
- UIView随手指的移动
- UIView的drawRect方法
- UIView的drawRect方法
- UIView的setNeedsDisplay方法
- 打印UIView的方法
- 【iOS开发-触摸】移动的UIView例子
- Custom UIView 要重定的方法
- UIView设置背景图片的方法
- UIView设置背景图片的方法
- UIView设置背景图片的方法
- UIView设置背景图片的方法
- UIView 中常见的方法
- UIView 设置背景图片的方法
- UIView设置背景图片的方法
- UIView设置背景图片的方法
- java:位运算与逻辑运算
- Zookeeper集群环境安装过程详解
- Sqoop在Hadoop和关系型数据库之间的数据转移
- 联想Thinkpad E430搜不到无线网络
- JavaScript数组对象常用操作汇总
- 移动UIView的方法
- 深入分析Cocos2d-x 2.0中的“纹理”和精灵-沈大海cocos2d-x教程20
- hbase常去学习网站
- 经典java题(英文版)
- android Binder那点事儿
- 《研磨struts2》第七章 值栈和OGNL 之 7.1 值栈
- Spring框架参考文档-目录
- python 字符串转时间
- cmd 修改默认字符集