Skip to content

Commit f656767

Browse files
committed
兼容旧版本 xcode
1 parent 475b524 commit f656767

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

SDAutoLayout 测试 Demo.xcodeproj/xcuserdata/aier.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
endingColumnNumber = "9223372036854775807"
138138
startingLineNumber = "170"
139139
endingLineNumber = "170"
140-
landmarkName = "-updateLatout"
140+
landmarkName = "-updateLayout"
141141
landmarkType = "4">
142142
<Locations>
143143
<Location

SDAutoLayout 测试 Demo/DemoVC/DemoVC2/DemoVC2.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ - (void)viewDidLoad
3838

3939
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.8 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
4040
self.view0.sd_layout.bottomSpaceToView(self.view, 100);
41-
[self.view layoutSubviews];
41+
[self.view0 updateLayout];
4242
});
4343
}
4444

SDAutoLayout 测试 Demo/SDAutoLayout/UITableView+SDAutoTableViewCellHeight.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
// >>>>>>>>>>>>>> 多cell情景下调用以下方法(详细用法见demo7) >>>>>>>>>>>>>>>>>
6464

6565
/** cellClassArray 为所有cell的类组成的数组,详细用法见demo7 */
66-
- (void)startAutoCellHeightWithCellClasses:(NSArray<Class> *)cellClassArray contentViewWidth:(CGFloat)contentViewWidth;
66+
- (void)startAutoCellHeightWithCellClasses:(NSArray *)cellClassArray contentViewWidth:(CGFloat)contentViewWidth;
6767

6868
/** 返回计算出的cell高度;model为cell的数据模型实例;keyPath为cell的数据模型属性的属性名字符串(即kvc原理中的key) */
6969
- (CGFloat)cellHeightForIndexPath:(NSIndexPath *)indexPath model:(id)model keyPath:(NSString *)keyPath cellClass:(Class)cellClass;

SDAutoLayout 测试 Demo/SDAutoLayout/UITableView+SDAutoTableViewCellHeight.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ - (instancetype)initWithCellClass:(Class)cellClass
4949
return self;
5050
}
5151

52-
- (instancetype)initWithCellClasses:(NSArray<Class> *)cellClassArray
52+
- (instancetype)initWithCellClasses:(NSArray *)cellClassArray
5353
{
5454
if (self = [super init]) {
5555
_modelTableview = [UITableView new];
56-
[cellClassArray enumerateObjectsUsingBlock:^(Class _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
56+
[cellClassArray enumerateObjectsUsingBlock:^(Class obj, NSUInteger idx, BOOL *stop) {
5757
[self registerCellWithCellClass:obj];
5858
}];
5959
_cacheDictionary = [NSMutableDictionary new];
@@ -209,7 +209,7 @@ - (void)startAutoCellHeightWithCellClass:(Class)cellClass contentViewWidth:(CGFl
209209
self.cellAutoHeightManager.contentViewWidth = contentViewWidth;
210210
}
211211

212-
- (void)startAutoCellHeightWithCellClasses:(NSArray<Class> *)cellClassArray contentViewWidth:(CGFloat)contentViewWidth
212+
- (void)startAutoCellHeightWithCellClasses:(NSArray *)cellClassArray contentViewWidth:(CGFloat)contentViewWidth
213213
{
214214
if (!self.cellAutoHeightManager) {
215215
self.cellAutoHeightManager = [[SDCellAutoHeightManager alloc] initWithCellClasses:cellClassArray];

SDAutoLayout 测试 Demo/SDAutoLayout/UIView+SDAutoLayout.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,12 +659,12 @@ - (void)sd_autolayout
659659

660660
if (self.sd_equalWidthSubviews.count) {
661661
__block CGFloat totalMargin = 0;
662-
[self.sd_equalWidthSubviews enumerateObjectsUsingBlock:^(UIView * _Nonnull view, NSUInteger idx, BOOL * _Nonnull stop) {
662+
[self.sd_equalWidthSubviews enumerateObjectsUsingBlock:^(UIView *view, NSUInteger idx, BOOL *stop) {
663663
SDAutoLayoutModel *model = view.sd_layout;
664664
totalMargin += ([model.left.value floatValue] + [model.right.value floatValue]);
665665
}];
666666
CGFloat averageWidth = (self.width - totalMargin) / self.sd_equalWidthSubviews.count;
667-
[self.sd_equalWidthSubviews enumerateObjectsUsingBlock:^(UIView * _Nonnull view, NSUInteger idx, BOOL * _Nonnull stop) {
667+
[self.sd_equalWidthSubviews enumerateObjectsUsingBlock:^(UIView *view, NSUInteger idx, BOOL *stop) {
668668
view.width = averageWidth;
669669
view.fixedWith = @(averageWidth);
670670
}];

0 commit comments

Comments
 (0)