Monthly Archives: January 2016

简单递归实现遍历子视图

1、方法实现

1
2
3
4
5
6
/// 遍历子视图
- (void)subviewWithBlock:(void(^)(UIView *view))aBlock
{
????// 如果有子视图则进入循环
????for (UIView *view in self.subviews) {
????????// 如果子视[......]<p class="read-more"><a href="https://www.yusian.com/blog/project/2016/01/28/112951173.html">继续阅读</a></p>