Skip to content

Commit

Permalink
fix: by modifying the filter conditions to fix the possible inconsist…
Browse files Browse the repository at this point in the history
…ency of subscripts in different versions
  • Loading branch information
tigerAndBull committed Jun 11, 2021
1 parent 16a9286 commit 97f6320
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TABAnimated.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|
s.platform = :ios, "8.0"

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

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

Expand Down
5 changes: 4 additions & 1 deletion TABAnimatedDemo/TABAnimated/Product/TABAnimatedProductImpl.m
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,10 @@ - (BOOL)_cannotBeCreated:(UIView *)view superView:(UIView *)superView rootView:(
if ((CGRectEqualToRect(view.bounds, rootView.bounds)
|| view.bounds.size.width > rootView.bounds.size.width
|| view.bounds.size.height > rootView.bounds.size.height)
&& ![view isKindOfClass:[NSClassFromString(@"_UITableViewHeaderFooterContentView") class]]) {
&& ![view isKindOfClass:[NSClassFromString(@"_UITableViewHeaderFooterContentView") class]]
&& ![view isKindOfClass:[UILabel class]]
&& ![view isKindOfClass:[UIButton class]]
&& ![view isKindOfClass:[UIImageView class]]) {
return YES;
}

Expand Down

0 comments on commit 97f6320

Please sign in to comment.