Skip to content

Commit 1e6ce4f

Browse files
committedJun 4, 2018
v1.17.10 fix ChenYilong#277
1 parent 9ee4ecf commit 1e6ce4f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎CYLTabBarController.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "CYLTabBarController"
3-
s.version = "1.17.9"
3+
s.version = "1.17.10"
44
s.summary = "Highly customizable tabBar and tabBarController for iOS"
55
s.description = "CYLTabBarController is iPad and iPhone compatible. Supports landscape and portrait orientations and can be used inside UINavigationController."
66
s.homepage = "https://github.com/ChenYilong/CYLTabBarController"

‎CYLTabBarController/CYLTabBarController.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ - (void)setViewDidLayoutSubViewsBlock:(CYLViewDidLayoutSubViewsBlock)viewDidLayo
5252
}
5353

5454
- (void)viewDidLayoutSubviews {
55-
[self.tabBar layoutSubviews];//Fix issue #93
55+
CGFloat deviceVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
56+
if (deviceVersion >=10 && deviceVersion <10.2) {
57+
[self.tabBar layoutSubviews];//Fix issue #93
58+
}
5659
UITabBar *tabBar = self.tabBar;
5760
for (UIControl *control in tabBar.subviews) {
5861
if ([control isKindOfClass:[UIControl class]]) {

0 commit comments

Comments
 (0)