由使用Masonry布局不能立即获取到frame的问题 2023-12-24 本文已影响0人 wodeph 1、// 先调用layoutIfNeeded方法 [self.view layoutIfNeeded]; 2、再获取frame