1.UIView首末式动画(实现渐变效果)[UIView animateWithDuration:...]在修改了自动布局的约束之后,执行下面代码实现动画效果 [UIView animateWithDuration:1.0 animations:^{
[添加了约束的view layoutIfNeeded];
}];2.UIImageView的startAnimating系...
分类:
移动开发 时间:
2015-03-02 09:32:33
阅读次数:
216
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa...
分类:
其他好文 时间:
2015-03-01 17:02:56
阅读次数:
143
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa...
分类:
其他好文 时间:
2015-03-01 13:10:11
阅读次数:
134
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa...
分类:
其他好文 时间:
2015-03-01 13:05:09
阅读次数:
117
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa...
分类:
其他好文 时间:
2015-03-01 13:05:07
阅读次数:
108
UIKit框架提供了非常多的UI控件,但并不是每一个都很常用,有些控件可能1年内都用不上,有些控件天天用,比如UIButton、UILabel、UIImageView、UITableView等等,按钮控件是非常重要且比较基础的一个UI控件---UIButton,一般情况下,点击某个控件后,会做出相应...
分类:
移动开发 时间:
2015-03-01 00:14:16
阅读次数:
299
1:用UIImageView作为背景,但直接把按钮或者UITextField放在上面无法相应事件。解决办法:UIImageView默认的UserInteractionEnabled是NO,把它修改成YES,或者可以直接在XCODE上面的view有个属性勾选User Interaction Enabl...
分类:
移动开发 时间:
2015-02-28 18:04:16
阅读次数:
211
很多控件中希望加一条线, 常见横的竖的, 比如在一个页面的header里, cell中, 像tableview那样那样的分割线.
所以我总结了几种方式供大家参考:
1. 利用CGContext去画, 举个例子:
UIImageView *imageView=[[UIImageView alloc] initWithFrame:self.view.frame];
[self....
分类:
移动开发 时间:
2015-02-27 11:59:02
阅读次数:
151
这个只要一行代码就搞定了。详细请看:In order to get the right frame/bounds of your UIImageView after resizing, you need first ask auto-layout to update that layout usin...
分类:
其他好文 时间:
2015-02-25 18:29:22
阅读次数:
124
上篇介绍了UIButton、UILabel、UIImageView和UITextField,这篇就简短一点介绍UIScrollView和UIAlertView。UIScrollView 顾名思义也知道这个是和滚动相关的控件,在Android开发时遇到过ScrollView,当内容的尺寸超出了屏...
分类:
移动开发 时间:
2015-02-18 22:03:50
阅读次数:
220