2019年10月22日

iIOS之动画停止

摘要: - (void)rotateView { CABasicAnimation *rotationAnimation; rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; rotatio 阅读全文

posted @ 2019-10-22 15:29 程序“猿” 阅读(557) 评论(0) 推荐(0) 编辑

iIOS之重写TabBar使凸出的部分有效果

摘要: #pragma mark -- 重写hitTest方法,去监听发布按钮的点击,目的是为了让凸出的部分点击也有反应 - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { //这一个判断是关键,不判断的话push到其他页面,点击发布按钮的位置也是会有反应的,这样就不好了 //self.isHidden == N... 阅读全文

posted @ 2019-10-22 15:23 程序“猿” 阅读(401) 评论(0) 推荐(0) 编辑

iOS之弹簧效果动画

摘要: (NSTimeInterval)duration —— 动画时间 (NSTimeInterval)delay —— 延时几秒后开始执行动画 Spring Animation 的 API 和一般动画相比多了两个参数,分别是 usingSpringWithDamping和 initialSpringVe 阅读全文

posted @ 2019-10-22 15:18 程序“猿” 阅读(2514) 评论(0) 推荐(0) 编辑

导航