Skip to content

Commit

Permalink
【改】替换私有api
Browse files Browse the repository at this point in the history
  • Loading branch information
xvwvx committed Jun 17, 2017
1 parent 3cb534a commit 8fdb3b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WZLBadge.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/weng1250/WZLBadge'
s.license = { :type => 'None', :file => 'LICENSE' }
s.author = { 'Zilin Weng翁子林' => "719113951@qq.com" }
s.source = { :git => 'https://github.com/weng1250/WZLBadge.git', :tag => s.version }
s.source = { :git => 'https://github.com/BeeModule/WZLBadge.git', :tag => s.version }
s.platform = :ios, '5.0'
s.requires_arc = true

Expand Down
2 changes: 1 addition & 1 deletion WZLBadge/BarItem/UITabBarItem+WZLBadge.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (UIView *)getActualBadgeSuperView
// 2.get imageView, to make sure badge front at anytime.
UIView *actualSuperView = nil;
if (bottomView) {
actualSuperView = [self find:bottomView firstSubviewWithClass:NSClassFromString(@"UITabBarSwappableImageView")];
actualSuperView = [self find:bottomView firstSubviewWithClass:[UIImageView class]];
}

// badge label will be added onto imageView
Expand Down

2 comments on commit 8fdb3b6

@yyyzzq
Copy link

@yyyzzq yyyzzq commented on 8fdb3b6 Mar 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我能问一下,为什么要找到这个ImageView呢。不能直接使用[self valueForKeyPath:@"_view"]这个view吗

@xvwvx
Copy link
Author

@xvwvx xvwvx commented on 8fdb3b6 Apr 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般path为私有api Apple这方面管的越来越严了 这里连私有类名都能被审核打回 UITabBarSwappableImageView @yyyzzq

Please sign in to comment.