当前位置: 首页 > news >正文

手机网站开发框架长沙网站 建设推广世云网络

手机网站开发框架,长沙网站 建设推广世云网络,湖南网站设计制作,2个wordpressUIView之常用方法 将一个视图添加为子视图#xff0c;并使之在最上面显示 -(void)addSubView:(UIView *)view;将指定子视图移动到顶部 -(void)bringSubViewToFront:(UIView *)view;将指定之视图放到最下面 -(void)sendSubViewToBack:(UIView *)view;将指定视图添加到subviews数… UIView之常用方法 将一个视图添加为子视图并使之在最上面显示 -(void)addSubView:(UIView *)view;将指定子视图移动到顶部 -(void)bringSubViewToFront:(UIView *)view;将指定之视图放到最下面 -(void)sendSubViewToBack:(UIView *)view;将指定视图添加到subviews数组的index位置 -(void)insertSubview:(UIView *)view atIndex:(NSInteger)index;将指定视图添加到指定子视图下面 -(void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;将指定视图添加到指定子视图上面 -(void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;交换subviews数组中两个位置的子视图 -(void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2;从父视图中移除 -(void)removeFromSuperview;根据tag值获取对应的子孙控件 -(UIView *)viewWithTag:(NSInteger)tag;将视图中点从自己的坐标系转换到指定的视图坐标系中 -(CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;将指定视图中坐标系内的某点转换到自己的坐标系中 -(CGPoint)convertPoint:(CGPoint)point fromView:(UIView *)view;将视图中矩形区域从自己的坐标系转换到指定的视图坐标系中 -(CGRect)convertRect:(CGRect)rect toView:(UIView *)view;将指定视图中坐标系内的矩形区域转换到自己的坐标系中 -(CGRect)convertRect:(CGRect)rect fromView:(UIView *)view;刷新视图,调用后自动调用drawRect:(CGRect)rect -(void)setNeedsDisplay; 继承自UIResponder用于响应触摸事件的方法 1.- (void)touchesBegan:(NSSetUITouch * *)touches withEvent:(nullable UIEvent *)event;2.- (void)touchesMoved:(NSSetUITouch * *)touches withEvent:(nullable UIEvent *)event;3.- (void)touchesEnded:(NSSetUITouch * *)touches withEvent:(nullable UIEvent *)event;4.- (void)touchesCancelled:(nullable NSSetUITouch * *)touches withEvent:(nullable UIEvent *)event; 以上方法需要自定义view重写若需要对触摸点到判断使用那么重写方法时在方法体内首先获取触摸点 1.UITouch *touch [touches anyObject];2.CGPoint point [touch locationInView:self]; 动画 1.// 首先需要设置动画头告诉编译器下面是动画2.[UIView beginAnimations:nil context:nil];3.// 再设置动画执行的配置、动画4.[UIView setAnimationDuration:0.5];5.[UIView setAnimationRepeatCount:2];6.[UIView setAnimationDelay:3.0];7.// balabala需要执行的动画8. ................9.// 最后提交动画10.[UIView commitAnimations]; 使用block设置动画 方法一 (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations;方法二 (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations completion:(void (^ __nullable)(BOOL finished))completion方法三 (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ __nullable)(BOOL finished))completion 转载于:https://www.cnblogs.com/buakaw/p/5069287.html
http://www.pierceye.com/news/971355/

相关文章:

  • 珠海高端网站制作公司兰州市建设局官方网站
  • 网站如何改首页模块有了主机如何做网站
  • 郑州哪有做网站的前端学习网站
  • 电商网站建设概念wordpress主题个人博客
  • 福州网站建设多少钱全网商城系统
  • 自己如何做团购网站在设计赚钱的网站
  • 支持wap网站的系统百度seo关键词排名查询
  • 做最好最全的命理网站郴州网络营销
  • wap网站技术怎么查询网站的建站时间
  • 深圳网站开发专业团队2o18江苏建设网站施工员模试卷
  • 网站购物建设实训心得体会中山皇冠建设开发有限公司网站
  • 做360pc网站排名首页学校网站建设工作计划
  • 网站设计与制作的基本步骤移动互联网论文
  • 建设部网站2015年第158号中国建筑材料网官网
  • 大理网站建设沛宣郑州模板建站代理
  • 新浪博客怎么上传wordpress佛山推广seo排名
  • 北京建设网站有哪些公司网络营销方法有哪几种
  • 在中国备案的网站服务器利用小说网站做本站优化
  • 网站风格的表现形式重庆观音桥房价
  • 哪些公司的网站做的很好手机网页素材
  • 天津地铁建设网站百度广告太多
  • 保定php网站制作wordpress的seo收件箱
  • 网站建设公司-跨界鱼科技优外国网站设计风格
  • 网站营销平台注册微信公众号流程
  • 西安专业网站建设服务公司商标查询网入口
  • 营销型网站设计房地产wordpress多媒体路径
  • 门户网站建设解决方案wordpress图片广告
  • 哈尔滨h5模板建站设计一个软件需要多少钱
  • 青岛网站建设方案服务惠民卡看电影怎么用
  • 兰州新站点seo加盟网站建设工作有底薪吗