
UI
ChengTomGeGe
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于iOS中图片的平铺
做项目遇到这种问题 UI提供的图是这样的,只有一个锯齿 但是我们项目的需求是这样的,是一排锯齿 这个时候我们可以用图片的平铺来完成效果self.sawtoothImageView = [[UIImageView alloc]init]; UIImage *sawtoothImage = [UIImage imageNamed:@"home_sawtooth"];原创 2016-02-04 16:16:24 · 991 阅读 · 0 评论 -
iOS -- childViewController 的问题
做开发,会经常碰到图片这种类似的需求.或是segmentControl 或者两个button控制两个界面直接的切换 推荐一个比较好用的方法 新建两个viewController,我们命名为FirstViewController 和 SecondViewController 在RootViewController的代码如下#import "RootViewController.h" #impor原创 2016-02-04 17:03:51 · 578 阅读 · 0 评论 -
当键盘出现的时候,如何让UITextField自动上移
对于这个问题,主要是通过增加对键盘出现和消失的相应的Notification,然后在键盘出现和消息的时候,通过设置相关控件的frame来实现。相关代码如下,来源自stackoverflow。-(void)textFieldDidBeginEditing:(UITextField *)sender { if ([sender isEqual:_textField]) {转载 2016-02-26 15:57:35 · 643 阅读 · 0 评论 -
为一个view添加UIAlertview动画效果
CAKeyframeAnimation * animation; animation = [CAKeyframeAnimation animationWithKeyPath:@”transform”]; animation.duration = 0.5; animation.delegate = self; animation.removedOnComplet转载 2017-02-17 09:10:28 · 406 阅读 · 0 评论