代码改变世界

随笔档案-2018年09月

xcode10 library not found for -lstdc++.6

2018-09-26 11:29 by 法子, 3406 阅读, 收藏, 编辑
摘要: 参考文章:https://blog.csdn.net/ZuoWeiXiaoDuZuoZuo/article/details/82756116 更新到Xcodex10之后,编译报错library not found for -lstdc++.6 因为项目里Link Binary With Librar 阅读全文

UITableView从下往上加载cell CGAffineTransform

2018-09-18 11:08 by 法子, 1004 阅读, 收藏, 编辑
摘要: tableView是从上往下依次加载cell的。有时候想从下往上加载cell,比如聊天页面就是这样的,可以通过对tableView和其cell在y轴上缩放-1。来实现,当然, tableView.contentOffset.y的值、indexPaht的值也因此是从底部往上增长的。 override 阅读全文

indexPathsForSelectedRows被reloadData破坏

2018-09-17 15:43 by 法子, 1053 阅读, 收藏, 编辑
摘要: 参考文章:https://blog.csdn.net/a906335708/article/details/79300521 通过设置 或者实现协议 都可以由 或者有导航栏时添加左上角的编辑按钮,通过点击编辑按钮 进入编辑模式,来实现cell的多选,并且可以通过 来获取选中的indexPath。 但 阅读全文

push/pop 导航栏黑色阴影问题

2018-09-10 15:57 by 法子, 490 阅读, 收藏, 编辑
摘要: 原文:https://blog.csdn.net/thelittleboy/article/details/49001973 Toolbar类型,translucent = true,如果遮住的view有颜色,在push或pop时,都会有一部分颜色渐变区域。 当UITabBarController的 阅读全文

未调用preferredScreenEdgesDeferringSystemGestures和childViewControllerForScreenEdgesDeferringSystemGestures

2018-09-04 18:52 by 法子, 1286 阅读, 收藏, 编辑
摘要: 有一种原因会导致不调用重写的preferredScreenEdgesDeferringSystemGestures和childViewControllerForScreenEdgesDeferringSystemGestures函数。 就是新建了一个UIWindow,(默认isHidden = tr 阅读全文
点击右上角即可分享
微信分享提示