Commit 04dac49eaa5959c0a978b45f79f699d2c330c4a6
1 parent
fe3c8243
提交0.0.8
Showing
5 changed files
with
22 additions
and
52 deletions
.gitignore
| 1 | -# OS X | |
| 1 | +*~ | |
| 2 | 2 | .DS_Store |
| 3 | - | |
| 4 | -# Xcode | |
| 5 | -build/ | |
| 6 | -Products/ | |
| 7 | -*.pbxuser | |
| 8 | -!default.pbxuser | |
| 9 | -*.mode1v3 | |
| 10 | -!default.mode1v3 | |
| 11 | -*.mode2v3 | |
| 12 | -!default.mode2v3 | |
| 13 | -*.perspectivev3 | |
| 14 | -!default.perspectivev3 | |
| 15 | -xcuserdata/ | |
| 16 | -*.xccheckout | |
| 17 | -profile | |
| 18 | -*.moved-aside | |
| 19 | -DerivedData | |
| 20 | -*.hmap | |
| 21 | -*.ipa | |
| 22 | - | |
| 23 | -# Bundler | |
| 24 | -.bundle | |
| 25 | - | |
| 26 | -# Add this line if you want to avoid checking in source code from Carthage dependencies. | |
| 27 | -# Carthage/Checkouts | |
| 28 | - | |
| 29 | -Carthage/Build | |
| 30 | - | |
| 31 | -# We recommend against adding the Pods directory to your .gitignore. However | |
| 32 | -# you should judge for yourself, the pros and cons are mentioned at: | |
| 33 | -# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | |
| 34 | -# | |
| 35 | -# Note: if you ignore the Pods directory, make sure to uncomment | |
| 36 | -# `pod install` in .travis.yml | |
| 37 | -# | |
| 38 | -# Pods/ | |
| 3 | +*.xcuserstate | |
| 4 | +*.xcworkspace | |
| 5 | +xcuserdata | |
| 6 | +*.lock | |
| 7 | +Pods | ... | ... |
CNLiveImagePickerController.podspec
CNLiveImagePickerController/Classes/TZAssetCell.m
CNLiveImagePickerController/Classes/TZPhotoPreviewController.m
| ... | ... | @@ -90,6 +90,11 @@ |
| 90 | 90 | |
| 91 | 91 | - (void)viewWillAppear:(BOOL)animated { |
| 92 | 92 | [super viewWillAppear:animated]; |
| 93 | + | |
| 94 | + if (_collectionView) { | |
| 95 | + [_collectionView reloadData]; | |
| 96 | + } | |
| 97 | + | |
| 93 | 98 | [self.navigationController setNavigationBarHidden:YES animated:YES]; |
| 94 | 99 | if (iOS7Later) [UIApplication sharedApplication].statusBarHidden = YES; |
| 95 | 100 | if (_currentIndex) [_collectionView setContentOffset:CGPointMake((self.view.tz_width + 20) * _currentIndex, 0) animated:NO]; | ... | ... |
Example/CNLiveImagePickerController.xcodeproj/xcshareddata/xcschemes/CNLiveImagePickerController-Example.xcscheme
| ... | ... | @@ -27,6 +27,15 @@ |
| 27 | 27 | selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" |
| 28 | 28 | selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" |
| 29 | 29 | shouldUseLaunchSchemeArgsEnv = "YES"> |
| 30 | + <MacroExpansion> | |
| 31 | + <BuildableReference | |
| 32 | + BuildableIdentifier = "primary" | |
| 33 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 34 | + BuildableName = "CNLiveImagePickerController_Example.app" | |
| 35 | + BlueprintName = "CNLiveImagePickerController_Example" | |
| 36 | + ReferencedContainer = "container:CNLiveImagePickerController.xcodeproj"> | |
| 37 | + </BuildableReference> | |
| 38 | + </MacroExpansion> | |
| 30 | 39 | <Testables> |
| 31 | 40 | <TestableReference |
| 32 | 41 | skipped = "NO"> |
| ... | ... | @@ -39,17 +48,6 @@ |
| 39 | 48 | </BuildableReference> |
| 40 | 49 | </TestableReference> |
| 41 | 50 | </Testables> |
| 42 | - <MacroExpansion> | |
| 43 | - <BuildableReference | |
| 44 | - BuildableIdentifier = "primary" | |
| 45 | - BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 46 | - BuildableName = "CNLiveImagePickerController_Example.app" | |
| 47 | - BlueprintName = "CNLiveImagePickerController_Example" | |
| 48 | - ReferencedContainer = "container:CNLiveImagePickerController.xcodeproj"> | |
| 49 | - </BuildableReference> | |
| 50 | - </MacroExpansion> | |
| 51 | - <AdditionalOptions> | |
| 52 | - </AdditionalOptions> | |
| 53 | 51 | </TestAction> |
| 54 | 52 | <LaunchAction |
| 55 | 53 | buildConfiguration = "Debug" |
| ... | ... | @@ -71,8 +69,6 @@ |
| 71 | 69 | ReferencedContainer = "container:CNLiveImagePickerController.xcodeproj"> |
| 72 | 70 | </BuildableReference> |
| 73 | 71 | </BuildableProductRunnable> |
| 74 | - <AdditionalOptions> | |
| 75 | - </AdditionalOptions> | |
| 76 | 72 | </LaunchAction> |
| 77 | 73 | <ProfileAction |
| 78 | 74 | buildConfiguration = "Release" | ... | ... |