Skip to content

Commit 97f6320

Browse files
committed
fix: by modifying the filter conditions to fix the possible inconsistency of subscripts in different versions
1 parent 16a9286 commit 97f6320

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

TABAnimated.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
2626
s.platform = :ios, "8.0"
2727

2828
#库的地址
29-
s.source = { :git => "https://github.com/tigerAndBull/TABAnimated.git", :tag => "2.5.7" }
29+
s.source = { :git => "https://github.com/tigerAndBull/TABAnimated.git", :commit => "83e2ceb273166088169da3db0785af186d0761d0" }
3030

3131
s.source_files = 'TABAnimatedDemo/TABAnimated/**/*.{h,m}'
3232

TABAnimatedDemo/TABAnimated/Product/TABAnimatedProductImpl.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ - (BOOL)_cannotBeCreated:(UIView *)view superView:(UIView *)superView rootView:(
527527
if ((CGRectEqualToRect(view.bounds, rootView.bounds)
528528
|| view.bounds.size.width > rootView.bounds.size.width
529529
|| view.bounds.size.height > rootView.bounds.size.height)
530-
&& ![view isKindOfClass:[NSClassFromString(@"_UITableViewHeaderFooterContentView") class]]) {
530+
&& ![view isKindOfClass:[NSClassFromString(@"_UITableViewHeaderFooterContentView") class]]
531+
&& ![view isKindOfClass:[UILabel class]]
532+
&& ![view isKindOfClass:[UIButton class]]
533+
&& ![view isKindOfClass:[UIImageView class]]) {
531534
return YES;
532535
}
533536

0 commit comments

Comments
 (0)