摘要: [UIView animateWithDuration:0 animations:NULL completion:^(BOOL finished) { [UIView animateWithDuration:0.25 animations:^{ ... 阅读全文
posted @ 2015-08-03 20:29 ashamp 阅读(605) 评论(0) 推荐(0)
摘要: 无限滚动组件封装特点 1.一句话就可以生成1个无限滚动视图,传入数据源和内容视图生成方法即可 2.使用AutoLayout构建,全自适应,内容页自动跟随滚动视图变化,无需任何frame调整HXInfiniteScrollView *infiniteScrollView=[[HXInfiniteScr... 阅读全文
posted @ 2015-06-24 15:09 ashamp 阅读(330) 评论(0) 推荐(0)
摘要: 代码功能: //0.priceTextFiled.keyboardType = UIKeyboardTypeDecimalPad;//必须 //1.限制priceTextFiled只允许输入正确的数额 比如 0 123 123. 123.0 123.12,不合法的: 00 0.1.23 将被... 阅读全文
posted @ 2015-06-04 18:53 ashamp 阅读(4261) 评论(0) 推荐(0)
摘要: 1.RACObserve可以用来观察一个NSMutableDictionary的setValue和remove吗?可以一个对象有一个property@property(nonatomic,strong)NSMutableDictionary *testDict;使用RACObserve进行观察 ... 阅读全文
posted @ 2015-05-27 19:22 ashamp 阅读(1654) 评论(1) 推荐(0)
摘要: keycode:/** * 将若干view等宽布局于容器containerView中 * * @param views viewArray * @param containerView 容器view * @param LRpadding 距容器的左右边距 * @pa... 阅读全文
posted @ 2015-05-06 11:49 ashamp 阅读(1871) 评论(1) 推荐(1)
摘要: 1.在ViewController中拖入1个UIScrollView,并为其添加约束约束为上下左右四边与superview对齐2.在scrollview中,拖入1个UIView,为了便于区分将其设为橙色。3.为view添加约束约束为上下左右四边与superview对齐添加完这些约束后,我们发现出现了... 阅读全文
posted @ 2015-04-23 17:30 ashamp 阅读(3343) 评论(0) 推荐(1)
摘要: 几个要点1.cell的ContentView的底边必须与cell中的元素有关系2.cell中含有动态高度的元素,比如UILabel,必须设置preferredMaxLayoutWidth3.对于cell中可能需要隐藏的元素,可以将这个元素的高度的约束动态的设置为0或需要的高度,但是在更改高度为需要的... 阅读全文
posted @ 2015-04-10 10:01 ashamp 阅读(227) 评论(0) 推荐(0)
摘要: key code- (void)webViewDidFinishLoad:(UIWebView *)aWebView{ CGRect frame = aWebView.frame; frame.size.height = 1; aWebView.frame = frame; ... 阅读全文
posted @ 2015-04-02 16:20 ashamp 阅读(228) 评论(1) 推荐(0)
摘要: 1个,当某个UIView被add到superView时,会先removeFromSuperView 阅读全文
posted @ 2015-03-25 20:40 ashamp 阅读(176) 评论(0) 推荐(0)
摘要: 今天下午开始给我的app的下载功能写删除下载的逻辑在这个逻辑中,点击了删除按钮后: 1,当该cell正处于下载中时 1,首先暂停全部cell 2,删除该cell 3,开始下载其他手动开始的cell 2,当该cell处于下载暂停中时 1,其他cell正在下载,暂停全... 阅读全文
posted @ 2014-11-04 20:26 ashamp 阅读(289) 评论(0) 推荐(1)