Fork me on GitHub

11 2018 档案

摘要:APP push一个界面,返回的时候,tabBar上的图标和文字出现一个从上往下的神奇动画 经过测试发现,如果使用系统OS12.1 UINavigationController + UITabBarController( UITabBar 磨砂),在popViewControllerAnimated 阅读全文
posted @ 2018-11-30 11:05 平凡的不平凡 阅读(1258) 评论(0) 推荐(0)
摘要:自定义UITabBar替换系统默认的,目的是为了在UITabBar中间位置添加一个“+号按钮” 1、自定义WBTabBar,让其继承自UITabBar,并定义点击事件代理方法。 .h方法里面 #import <UIKit/UIKit.h> @class WXReleaseTabBar; @proto 阅读全文
posted @ 2018-11-26 12:40 平凡的不平凡 阅读(893) 评论(0) 推荐(0)
摘要:1,UITableview的优化方法(缓存高度,异步绘制,减少层级,hide,避免离屏渲染) (1)缓存高度:当我们创建frame模型的时候,计算出来cell的高度的时候,我们可以将cell的高度缓存到字典里面,以cell的indexpath和Identifier作为为key。 异步绘制 在Cell 阅读全文
posted @ 2018-11-26 11:11 平凡的不平凡 阅读(341) 评论(0) 推荐(0)
摘要:(1)首先UIView可以响应用户的触摸事件,Layer不可以. (2)View中frame getter方法,bounds和center,UIView并没有做什么工作;它只是简单的各自调用它底层的CALayer的frame,bounds和position方法。 (3)UIView主要是对显示内容的 阅读全文
posted @ 2018-11-23 16:09 平凡的不平凡 阅读(296) 评论(0) 推荐(0)

AmazingCounters.com