Skip to content

Commit a826a38

Browse files
committed
修复在tabar上使用时的bug
修复在tabar上使用时的bug
1 parent 47f9e6e commit a826a38

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

ATNavigationController.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "ATNavigationController"
3-
s.version = "0.0.3"
3+
s.version = "0.0.4"
44
s.summary = "drag back to preViewController"
55
s.homepage = "https://github.com/CoderLT/ATNavigationController"
66
s.license = "MIT"
77
s.author = { "AT" => "290907999@qq.com" }
88
s.social_media_url = "http://weibo.com/aoranxmu"
9-
s.source = { :git => "https://github.com/CoderLT/ATNavigationController.git", :tag => "0.0.3" }
9+
s.source = { :git => "https://github.com/CoderLT/ATNavigationController.git", :tag => "0.0.4" }
1010
s.source_files = "ATNavigationController"
1111
s.requires_arc = true
1212
s.platform = :ios, '6.0'

ATNavigationController/ATNavigationController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ - (UIView *)backgroundView {
5353
if (_backgroundView == nil) {
5454
_backgroundView = [[UIView alloc]initWithFrame:self.view.bounds];
5555
_backgroundView.backgroundColor = [UIColor blackColor];
56-
[self.view.superview insertSubview:_backgroundView belowSubview:self.view];
5756

5857
_lastScreenShotView = [[UIImageView alloc] initWithFrame:_backgroundView.bounds];
5958
_lastScreenShotView.backgroundColor = [UIColor whiteColor];
@@ -63,6 +62,9 @@ - (UIView *)backgroundView {
6362
_lastScreenBlackMask.backgroundColor = [UIColor blackColor];
6463
[_backgroundView addSubview:_lastScreenBlackMask];
6564
}
65+
if (_backgroundView.superview == nil) {
66+
[self.view.superview insertSubview:_backgroundView belowSubview:self.view];
67+
}
6668
return _backgroundView;
6769
}
6870

ATNavigationControllerDemo/ATNavigationControllerDemo.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@
439439
A09B22521AB0893B00E3E4A1 /* Release */,
440440
);
441441
defaultConfigurationIsVisible = 0;
442+
defaultConfigurationName = Release;
442443
};
443444
A09B22531AB0893B00E3E4A1 /* Build configuration list for PBXNativeTarget "ATNavigationControllerDemoTests" */ = {
444445
isa = XCConfigurationList;
@@ -447,6 +448,7 @@
447448
A09B22551AB0893B00E3E4A1 /* Release */,
448449
);
449450
defaultConfigurationIsVisible = 0;
451+
defaultConfigurationName = Release;
450452
};
451453
/* End XCConfigurationList section */
452454
};

ATNavigationControllerDemo/ATNavigationControllerDemo/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>1.0.2</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UILaunchStoryboardName</key>

0 commit comments

Comments
 (0)