diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 022f8cf..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,68 +0,0 @@ -### v0.4.3 - 2016-08-12 - -- Added ```- (void)czpickerViewWillDisplay:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewDidDisplay:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewWillDismiss:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewDidDismiss:(CZPickerView *)pickerView;``` -- Added ```- (void)reloadData``` to reload picker. -- Added ```- (void)showInContainer:(id)container```. - -### v0.4.2 - 2016-04-12 -- Improve orientation handler to avoid unnecessary pop up animations. - -### v0.4.1 - 2016-04-10 -- Remove bundle resources setting in podspec file. - -### v0.4.0 - 2016-04-09 -- Added ```pickerWidth``` for setting picker width. - -### v0.3.9 - 2016-03-24 - -#### Added -- Added ```checkmarkColor``` for cell checkmark. - -### v0.3.8 - 2016-03-08 - -#### Added -- Added ```headerTitleFont``` for title setting font. - -### v0.3.7 - 2015-11-29 -#### Added -- Added ```- (UIImage *)czpickerView:(CZPickerView *)pickerView imageForRow:(NSInteger)row``` for setting images for every item [#20](https://github.com/chenzeyu/CZPicker/issues/20) - -### v0.3.6 - 2015-09-11 -#### Added -- Added ```animationDuration``` for setting duration of animation (both showing and dismissing) [#14](https://github.com/chenzeyu/CZPicker/issues/14) -- Added ```- (NSArray *)selectedRows``` to return previously selected items.[#10](https://github.com/chenzeyu/CZPicker/issues/10) -- Added ```setSelectedRows:rows``` to pre-set selected items before showing.[#15](https://github.com/chenzeyu/CZPicker/issues/15) - - -### v0.3.5 - 2015-07-21 -#### Changed -- Change delegate & dataSource methods names to conform to apple's guideline and avoid error in swift.(methods' names start with 'CZPicker' to 'czpicker')[#5](https://github.com/chenzeyu/CZPicker/issues/5) -- Make picker higher in landscape mode. - -### v0.3.4 - 2015-07-20 -#### Fixed -- Fixed multiple selection mode cell selection not remembered issue. [#8](https://github.com/chenzeyu/CZPicker/issues/8) - -### v0.3.3 - 2015-07-20 -#### Fixed -- Listen to orientation change when needed. (App supports landscape & portrait) -- Animate picker only on supported orientations. -- Fixed multiple selection mode cell selection not remembered issue. [#8](https://github.com/chenzeyu/CZPicker/issues/8) - -### v0.3.2 - 2015-07-16 -#### Changed -- Changed return type of ```CZPickerView:titleForRow:``` to NSString. - -#### Added -- Added ```CZPickerView:attributedTitleForRow``` to support attributed row title, reference: [#3](https://github.com/chenzeyu/CZPicker/issues/3) - -### v0.2.2 - 2015-07-14 -#### Added -- Added ```allowMultipleSelection``` flag to support multiple selections, reference: [#1](https://github.com/chenzeyu/CZPicker/issues/1) - -### v0.2.1 - 2015-07-14 -#### Fixed -- Fixed orientation issue, reference: [#2](https://github.com/chenzeyu/CZPicker/issues/2). diff --git a/CZPicker.podspec b/CZPicker.podspec deleted file mode 100644 index 22a1c49..0000000 --- a/CZPicker.podspec +++ /dev/null @@ -1,31 +0,0 @@ -# -# Be sure to run `pod lib lint CZPicker.podspec' to ensure this is a -# valid spec and remove all comments before submitting the spec. -# -# Any lines starting with a # are optional, but encouraged -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html -# - -Pod::Spec.new do |s| - s.name = "CZPicker" - s.version = "0.4.3" - s.summary = "CZPicker is a picker view shown as a popup." - s.description = <<-DESC - CZPicker is flexible. It is shown as a popup with customizations. - - DESC - s.homepage = "https://github.com/chenzeyu/CZPicker" - # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" - s.license = 'MIT' - s.author = { "chenzeyu" => "zeyufly@gmail.com" } - s.source = { :git => "https://github.com/chenzeyu/CZPicker.git", :tag => s.version.to_s } - s.social_media_url = 'https://twitter.com/chenzeyu' - - s.platform = :ios, '8.0' - s.requires_arc = true - - s.source_files = 'Pod/Classes/*' - s.public_header_files = 'Pod/Classes/*.h' - s.frameworks = 'UIKit' -end diff --git a/Example/CZPicker.xcodeproj/project.pbxproj b/Example/CZPicker.xcodeproj/project.pbxproj deleted file mode 100644 index 52e9ada..0000000 --- a/Example/CZPicker.xcodeproj/project.pbxproj +++ /dev/null @@ -1,623 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; - 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; - 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; - 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; - 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; - 6003F59E195388D20070C39A /* CZAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CZAppDelegate.m */; }; - 6003F5A7195388D20070C39A /* CZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* CZViewController.m */; }; - 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; - 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; - 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; - 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; - 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; - 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; - 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; - 9757554B3CE3415237FF9CF4 /* libPods-CZPicker_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D6E4554479664108A72E627 /* libPods-CZPicker_Example.a */; }; - 98D67F6F68BE60FEE95E833E /* libPods-CZPicker_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EB42F7DB1EA50D8A4F8CDDF3 /* libPods-CZPicker_Tests.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 6003F582195388D10070C39A /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6003F589195388D20070C39A; - remoteInfo = CZPicker; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 1D6E4554479664108A72E627 /* libPods-CZPicker_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CZPicker_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 1F02BC7548E44F970FB0781E /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 42F8AD11755DFEAFEF00F2F0 /* CZPicker.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CZPicker.podspec; path = ../CZPicker.podspec; sourceTree = ""; }; - 6003F58A195388D20070C39A /* CZPicker_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CZPicker_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 6003F595195388D20070C39A /* CZPicker-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CZPicker-Info.plist"; sourceTree = ""; }; - 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 6003F59B195388D20070C39A /* CZPicker-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CZPicker-Prefix.pch"; sourceTree = ""; }; - 6003F59C195388D20070C39A /* CZAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CZAppDelegate.h; sourceTree = ""; }; - 6003F59D195388D20070C39A /* CZAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CZAppDelegate.m; sourceTree = ""; }; - 6003F5A5195388D20070C39A /* CZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CZViewController.h; sourceTree = ""; }; - 6003F5A6195388D20070C39A /* CZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CZViewController.m; sourceTree = ""; }; - 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 6003F5AE195388D20070C39A /* CZPicker_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CZPicker_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; - 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; - 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; - 6D7386ED2C9D9B3807C5A499 /* Pods-CZPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CZPicker_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.debug.xcconfig"; sourceTree = ""; }; - 7D6AE252D0B69FBE445C3389 /* Pods-CZPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CZPicker_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.debug.xcconfig"; sourceTree = ""; }; - 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; - 9C95947681CD21F871F3452D /* Pods-CZPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CZPicker_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.release.xcconfig"; sourceTree = ""; }; - A6FD24591EE7C1E379A3CCBC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; - BA508FA47AA72D4978EE255C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; - C252059C4BC249573814D6B0 /* Pods-CZPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CZPicker_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.release.xcconfig"; sourceTree = ""; }; - EB42F7DB1EA50D8A4F8CDDF3 /* libPods-CZPicker_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CZPicker_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6003F587195388D20070C39A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, - 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, - 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, - 9757554B3CE3415237FF9CF4 /* libPods-CZPicker_Example.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6003F5AB195388D20070C39A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, - 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, - 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, - 98D67F6F68BE60FEE95E833E /* libPods-CZPicker_Tests.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 18A869BB4F6ABFB7A44AEB91 /* Pods */ = { - isa = PBXGroup; - children = ( - 6D7386ED2C9D9B3807C5A499 /* Pods-CZPicker_Example.debug.xcconfig */, - C252059C4BC249573814D6B0 /* Pods-CZPicker_Example.release.xcconfig */, - 7D6AE252D0B69FBE445C3389 /* Pods-CZPicker_Tests.debug.xcconfig */, - 9C95947681CD21F871F3452D /* Pods-CZPicker_Tests.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; - 6003F581195388D10070C39A = { - isa = PBXGroup; - children = ( - 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, - 6003F593195388D20070C39A /* Example for CZPicker */, - 6003F5B5195388D20070C39A /* Tests */, - 6003F58C195388D20070C39A /* Frameworks */, - 6003F58B195388D20070C39A /* Products */, - 18A869BB4F6ABFB7A44AEB91 /* Pods */, - ); - sourceTree = ""; - }; - 6003F58B195388D20070C39A /* Products */ = { - isa = PBXGroup; - children = ( - 6003F58A195388D20070C39A /* CZPicker_Example.app */, - 6003F5AE195388D20070C39A /* CZPicker_Tests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 6003F58C195388D20070C39A /* Frameworks */ = { - isa = PBXGroup; - children = ( - 6003F58D195388D20070C39A /* Foundation.framework */, - 6003F58F195388D20070C39A /* CoreGraphics.framework */, - 6003F591195388D20070C39A /* UIKit.framework */, - 6003F5AF195388D20070C39A /* XCTest.framework */, - 1F02BC7548E44F970FB0781E /* Pods.framework */, - 1D6E4554479664108A72E627 /* libPods-CZPicker_Example.a */, - EB42F7DB1EA50D8A4F8CDDF3 /* libPods-CZPicker_Tests.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 6003F593195388D20070C39A /* Example for CZPicker */ = { - isa = PBXGroup; - children = ( - 6003F59C195388D20070C39A /* CZAppDelegate.h */, - 6003F59D195388D20070C39A /* CZAppDelegate.m */, - 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, - 6003F5A5195388D20070C39A /* CZViewController.h */, - 6003F5A6195388D20070C39A /* CZViewController.m */, - 6003F5A8195388D20070C39A /* Images.xcassets */, - 6003F594195388D20070C39A /* Supporting Files */, - ); - name = "Example for CZPicker"; - path = CZPicker; - sourceTree = ""; - }; - 6003F594195388D20070C39A /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6003F595195388D20070C39A /* CZPicker-Info.plist */, - 6003F596195388D20070C39A /* InfoPlist.strings */, - 6003F599195388D20070C39A /* main.m */, - 6003F59B195388D20070C39A /* CZPicker-Prefix.pch */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 6003F5B5195388D20070C39A /* Tests */ = { - isa = PBXGroup; - children = ( - 6003F5BB195388D20070C39A /* Tests.m */, - 6003F5B6195388D20070C39A /* Supporting Files */, - ); - path = Tests; - sourceTree = ""; - }; - 6003F5B6195388D20070C39A /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6003F5B7195388D20070C39A /* Tests-Info.plist */, - 6003F5B8195388D20070C39A /* InfoPlist.strings */, - 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { - isa = PBXGroup; - children = ( - 42F8AD11755DFEAFEF00F2F0 /* CZPicker.podspec */, - A6FD24591EE7C1E379A3CCBC /* README.md */, - BA508FA47AA72D4978EE255C /* LICENSE */, - ); - name = "Podspec Metadata"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6003F589195388D20070C39A /* CZPicker_Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CZPicker_Example" */; - buildPhases = ( - E5B5EADB571A32FBE2F9C313 /* Check Pods Manifest.lock */, - 6003F586195388D20070C39A /* Sources */, - 6003F587195388D20070C39A /* Frameworks */, - 6003F588195388D20070C39A /* Resources */, - 2E3CE8B315B015F0CE3C6A3F /* Copy Pods Resources */, - 29C583A06F55AA5B44E1222A /* Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = CZPicker_Example; - productName = CZPicker; - productReference = 6003F58A195388D20070C39A /* CZPicker_Example.app */; - productType = "com.apple.product-type.application"; - }; - 6003F5AD195388D20070C39A /* CZPicker_Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CZPicker_Tests" */; - buildPhases = ( - B80B1A8E5CE5CF65D6D0F8CD /* Check Pods Manifest.lock */, - 6003F5AA195388D20070C39A /* Sources */, - 6003F5AB195388D20070C39A /* Frameworks */, - 6003F5AC195388D20070C39A /* Resources */, - 96707B4EDE8F20D10159C54D /* Copy Pods Resources */, - 347E3C072A55C45DAF40F490 /* Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 6003F5B4195388D20070C39A /* PBXTargetDependency */, - ); - name = CZPicker_Tests; - productName = CZPickerTests; - productReference = 6003F5AE195388D20070C39A /* CZPicker_Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6003F582195388D10070C39A /* Project object */ = { - isa = PBXProject; - attributes = { - CLASSPREFIX = CZ; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = chenzeyu; - TargetAttributes = { - 6003F5AD195388D20070C39A = { - TestTargetID = 6003F589195388D20070C39A; - }; - }; - }; - buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CZPicker" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6003F581195388D10070C39A; - productRefGroup = 6003F58B195388D20070C39A /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6003F589195388D20070C39A /* CZPicker_Example */, - 6003F5AD195388D20070C39A /* CZPicker_Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6003F588195388D20070C39A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, - 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, - 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6003F5AC195388D20070C39A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 29C583A06F55AA5B44E1222A /* Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 2E3CE8B315B015F0CE3C6A3F /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 347E3C072A55C45DAF40F490 /* Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 96707B4EDE8F20D10159C54D /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - B80B1A8E5CE5CF65D6D0F8CD /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - E5B5EADB571A32FBE2F9C313 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6003F586195388D20070C39A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6003F59E195388D20070C39A /* CZAppDelegate.m in Sources */, - 6003F5A7195388D20070C39A /* CZViewController.m in Sources */, - 6003F59A195388D20070C39A /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6003F5AA195388D20070C39A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6003F5BC195388D20070C39A /* Tests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 6003F589195388D20070C39A /* CZPicker_Example */; - targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 6003F596195388D20070C39A /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 6003F597195388D20070C39A /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 6003F5B9195388D20070C39A /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6003F5BD195388D20070C39A /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6003F5BE195388D20070C39A /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6003F5C0195388D20070C39A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6D7386ED2C9D9B3807C5A499 /* Pods-CZPicker_Example.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "CZPicker/CZPicker-Prefix.pch"; - INFOPLIST_FILE = "CZPicker/CZPicker-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 6003F5C1195388D20070C39A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C252059C4BC249573814D6B0 /* Pods-CZPicker_Example.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "CZPicker/CZPicker-Prefix.pch"; - INFOPLIST_FILE = "CZPicker/CZPicker-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 6003F5C3195388D20070C39A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7D6AE252D0B69FBE445C3389 /* Pods-CZPicker_Tests.debug.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "Tests/Tests-Info.plist"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CZPicker_Example.app/CZPicker_Example"; - WRAPPER_EXTENSION = xctest; - }; - name = Debug; - }; - 6003F5C4195388D20070C39A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9C95947681CD21F871F3452D /* Pods-CZPicker_Tests.release.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; - INFOPLIST_FILE = "Tests/Tests-Info.plist"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CZPicker_Example.app/CZPicker_Example"; - WRAPPER_EXTENSION = xctest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6003F585195388D10070C39A /* Build configuration list for PBXProject "CZPicker" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6003F5BD195388D20070C39A /* Debug */, - 6003F5BE195388D20070C39A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CZPicker_Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6003F5C0195388D20070C39A /* Debug */, - 6003F5C1195388D20070C39A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CZPicker_Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6003F5C3195388D20070C39A /* Debug */, - 6003F5C4195388D20070C39A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6003F582195388D10070C39A /* Project object */; -} diff --git a/Example/CZPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/CZPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index f2a97e4..0000000 --- a/Example/CZPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Example/CZPicker.xcodeproj/xcshareddata/xcschemes/CZPicker-Example.xcscheme b/Example/CZPicker.xcodeproj/xcshareddata/xcschemes/CZPicker-Example.xcscheme deleted file mode 100644 index 1cb1bdf..0000000 --- a/Example/CZPicker.xcodeproj/xcshareddata/xcschemes/CZPicker-Example.xcscheme +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/CZPicker.xcworkspace/contents.xcworkspacedata b/Example/CZPicker.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index f8c2c39..0000000 --- a/Example/CZPicker.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/Example/CZPicker/CZAppDelegate.h b/Example/CZPicker/CZAppDelegate.h deleted file mode 100644 index afe8d91..0000000 --- a/Example/CZPicker/CZAppDelegate.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// CZAppDelegate.h -// CZPicker -// -// Created by CocoaPods on 06/27/2015. -// Copyright (c) 2014 chenzeyu. All rights reserved. -// - -@import UIKit; - -@interface CZAppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - -@end diff --git a/Example/CZPicker/CZPicker-Info.plist b/Example/CZPicker/CZPicker-Info.plist deleted file mode 100644 index 22e5d2c..0000000 --- a/Example/CZPicker/CZPicker-Info.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UILaunchStoryboardName - Main - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationPortrait - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Example/CZPicker/CZPicker-Prefix.pch b/Example/CZPicker/CZPicker-Prefix.pch deleted file mode 100644 index 7825372..0000000 --- a/Example/CZPicker/CZPicker-Prefix.pch +++ /dev/null @@ -1,16 +0,0 @@ -// -// Prefix header -// -// The contents of this file are implicitly included at the beginning of every source file. -// - -#import - -#ifndef __IPHONE_5_0 -#warning "This project uses features only available in iOS SDK 5.0 and later." -#endif - -#ifdef __OBJC__ - @import UIKit; - @import Foundation; -#endif diff --git a/Example/CZPicker/CZViewController.h b/Example/CZPicker/CZViewController.h deleted file mode 100644 index 74de779..0000000 --- a/Example/CZPicker/CZViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// CZViewController.h -// CZPicker -// -// Created by chenzeyu on 06/27/2015. -// Copyright (c) 2014 chenzeyu. All rights reserved. -// - -@import UIKit; -#import - -@interface CZViewController : UIViewController -- (IBAction)showWithImages:(id)sender; -- (IBAction)showWithFooter:(id)sender; -- (IBAction)showWithoutFooter:(id)sender; -- (IBAction)showWithMultipleSelection:(id)sender; -@end diff --git a/Example/CZPicker/CZViewController.m b/Example/CZPicker/CZViewController.m deleted file mode 100644 index 0c1905f..0000000 --- a/Example/CZPicker/CZViewController.m +++ /dev/null @@ -1,137 +0,0 @@ -// -// CZViewController.m -// CZPicker -// -// Created by chenzeyu on 06/27/2015. -// Copyright (c) 2014 chenzeyu. All rights reserved. -// - -#import "CZViewController.h" - -@interface CZViewController () -@property NSArray *fruits; -@property NSArray *fruitImages; -@property CZPickerView *pickerWithImage; -@end - -@implementation CZViewController - -- (void)viewDidLoad -{ - [super viewDidLoad]; - self.fruits = @[@"Apple", @"Banana", @"Grape", @"Watermelon", @"Lychee"]; - self.fruitImages = @[[UIImage imageNamed:@"Apple"], [UIImage imageNamed:@"Banana"], [UIImage imageNamed:@"Grape"], [UIImage imageNamed:@"Watermelon"], [UIImage imageNamed:@"Lychee"]]; - // Do any additional setup after loading the view, typically from a nib. - self.title = @"CZPicker"; -} - -- (void)didReceiveMemoryWarning -{ - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -/* comment out this method to allow - CZPickerView:titleForRow: to work. - */ -- (NSAttributedString *)czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row{ - - NSAttributedString *att = [[NSAttributedString alloc] - initWithString:self.fruits[row] - attributes:@{ - NSFontAttributeName:[UIFont fontWithName:@"Avenir-Light" size:18.0] - }]; - return att; -} - -- (NSString *)czpickerView:(CZPickerView *)pickerView - titleForRow:(NSInteger)row{ - return self.fruits[row]; -} - -- (UIImage *)czpickerView:(CZPickerView *)pickerView imageForRow:(NSInteger)row { - if([pickerView isEqual:self.pickerWithImage]) { - return self.fruitImages[row]; - } - return nil; -} - -- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView { - return self.fruits.count; -} - -- (void)czpickerView:(CZPickerView *)pickerView didConfirmWithItemAtRow:(NSInteger)row { - NSLog(@"%@ is chosen!", self.fruits[row]); - [self.navigationController setNavigationBarHidden:YES]; -} - -- (void)czpickerView:(CZPickerView *)pickerView didConfirmWithItemsAtRows:(NSArray *)rows { - for (NSNumber *n in rows) { - NSInteger row = [n integerValue]; - NSLog(@"%@ is chosen!", self.fruits[row]); - } -} - -- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView { - [self.navigationController setNavigationBarHidden:YES]; - NSLog(@"Canceled."); -} - -- (void)czpickerViewWillDisplay:(CZPickerView *)pickerView { - NSLog(@"Picker will display."); -} - -- (void)czpickerViewDidDisplay:(CZPickerView *)pickerView { - NSLog(@"Picker did display."); -} - -- (void)czpickerViewWillDismiss:(CZPickerView *)pickerView { - NSLog(@"Picker will dismiss."); -} - -- (void)czpickerViewDidDismiss:(CZPickerView *)pickerView { - NSLog(@"Picker did dismiss."); -} - -- (IBAction)showWithImages:(id)sender { - self.pickerWithImage = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" cancelButtonTitle:@"Cancel" confirmButtonTitle:@"Confirm"]; - self.pickerWithImage.delegate = self; - self.pickerWithImage.dataSource = self; - self.pickerWithImage.needFooterView = YES; - [self.pickerWithImage show]; -} - -- (IBAction)showWithFooter:(id)sender { - CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" cancelButtonTitle:@"Cancel" confirmButtonTitle:@"Confirm"]; - picker.delegate = self; - picker.dataSource = self; - picker.needFooterView = YES; - [picker show]; -} - -- (IBAction)showWithoutFooter:(id)sender { - CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" cancelButtonTitle:@"Cancel" confirmButtonTitle:@"Confirm"]; - picker.headerTitleFont = [UIFont systemFontOfSize: 40]; - picker.delegate = self; - picker.dataSource = self; - picker.needFooterView = NO; - [picker show]; -} - -- (IBAction)showWithMultipleSelection:(id)sender { - CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" cancelButtonTitle:@"Cancel" confirmButtonTitle:@"Confirm"]; - picker.delegate = self; - picker.dataSource = self; - picker.allowMultipleSelection = YES; - [picker show]; -} - -- (IBAction)showInsideContainer:(id)sender { - [self.navigationController setNavigationBarHidden:NO]; - CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" cancelButtonTitle:@"Cancel" confirmButtonTitle:@"Confirm"]; - picker.delegate = self; - picker.dataSource = self; - [picker showInContainer:self.view]; -} -@end diff --git a/Example/CZPicker/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/CZPicker/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index eeea76c..0000000 --- a/Example/CZPicker/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-1.jpg b/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-1.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-1.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-2.jpg b/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-2.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple-2.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple.jpg b/Example/CZPicker/Images.xcassets/Apple.imageset/Apple.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Apple.imageset/Apple.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Apple.imageset/Contents.json b/Example/CZPicker/Images.xcassets/Apple.imageset/Contents.json deleted file mode 100644 index cfd6681..0000000 --- a/Example/CZPicker/Images.xcassets/Apple.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Apple.jpg", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Apple-1.jpg", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Apple-2.jpg", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-1.png b/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-1.png deleted file mode 100644 index 295187b..0000000 Binary files a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-1.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-2.png b/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-2.png deleted file mode 100644 index 295187b..0000000 Binary files a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana-2.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana.png b/Example/CZPicker/Images.xcassets/Banana.imageset/Banana.png deleted file mode 100644 index 295187b..0000000 Binary files a/Example/CZPicker/Images.xcassets/Banana.imageset/Banana.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Banana.imageset/Contents.json b/Example/CZPicker/Images.xcassets/Banana.imageset/Contents.json deleted file mode 100644 index bc47dbb..0000000 --- a/Example/CZPicker/Images.xcassets/Banana.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Banana.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Banana-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Banana-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Grape.imageset/Contents.json b/Example/CZPicker/Images.xcassets/Grape.imageset/Contents.json deleted file mode 100644 index 2ab719d..0000000 --- a/Example/CZPicker/Images.xcassets/Grape.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Grape.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Grape-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Grape-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-1.png b/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-1.png deleted file mode 100644 index 1412c18..0000000 Binary files a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-1.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-2.png b/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-2.png deleted file mode 100644 index 1412c18..0000000 Binary files a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape-2.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape.png b/Example/CZPicker/Images.xcassets/Grape.imageset/Grape.png deleted file mode 100644 index 1412c18..0000000 Binary files a/Example/CZPicker/Images.xcassets/Grape.imageset/Grape.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/LaunchImage.launchimage/Contents.json b/Example/CZPicker/Images.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index 6da7c45..0000000 --- a/Example/CZPicker/Images.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "images" : [ - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "subtype" : "retina4", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Lychee.imageset/Contents.json b/Example/CZPicker/Images.xcassets/Lychee.imageset/Contents.json deleted file mode 100644 index 4f63c77..0000000 --- a/Example/CZPicker/Images.xcassets/Lychee.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Lychee.jpg", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Lychee-1.jpg", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Lychee-2.jpg", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-1.jpg b/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-1.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-1.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-2.jpg b/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-2.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee-2.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee.jpg b/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/Example/CZPicker/Images.xcassets/Lychee.imageset/Lychee.jpg and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Contents.json b/Example/CZPicker/Images.xcassets/Watermelon.imageset/Contents.json deleted file mode 100644 index a9bc970..0000000 --- a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Watermelon.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Watermelon-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Watermelon-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-1.png b/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-1.png deleted file mode 100644 index ac330ae..0000000 Binary files a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-1.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-2.png b/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-2.png deleted file mode 100644 index ac330ae..0000000 Binary files a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon-2.png and /dev/null differ diff --git a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon.png b/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon.png deleted file mode 100644 index ac330ae..0000000 Binary files a/Example/CZPicker/Images.xcassets/Watermelon.imageset/Watermelon.png and /dev/null differ diff --git a/Example/CZPicker/Main.storyboard b/Example/CZPicker/Main.storyboard deleted file mode 100644 index ed68fca..0000000 --- a/Example/CZPicker/Main.storyboard +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/CZPicker/en.lproj/InfoPlist.strings b/Example/CZPicker/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28f..0000000 --- a/Example/CZPicker/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/Example/CZPicker/main.m b/Example/CZPicker/main.m deleted file mode 100644 index c7a69e2..0000000 --- a/Example/CZPicker/main.m +++ /dev/null @@ -1,17 +0,0 @@ -// -// main.m -// CZPicker -// -// Created by chenzeyu on 06/27/2015. -// Copyright (c) 2014 chenzeyu. All rights reserved. -// - -@import UIKit; -#import "CZAppDelegate.h" - -int main(int argc, char * argv[]) -{ - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([CZAppDelegate class])); - } -} diff --git a/Example/Podfile b/Example/Podfile deleted file mode 100644 index ce37925..0000000 --- a/Example/Podfile +++ /dev/null @@ -1,10 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '8.0' - -target 'CZPicker_Example' do - pod "CZPicker", :path => "../" -end - -target 'CZPicker_Tests' do - pod "CZPicker", :path => "../" -end diff --git a/Example/Podfile.lock b/Example/Podfile.lock deleted file mode 100644 index e35ebdc..0000000 --- a/Example/Podfile.lock +++ /dev/null @@ -1,14 +0,0 @@ -PODS: - - CZPicker (0.3.7) - -DEPENDENCIES: - - CZPicker (from `../`) - -EXTERNAL SOURCES: - CZPicker: - :path: "../" - -SPEC CHECKSUMS: - CZPicker: c5dc1f70c4fe48e1a5a06c0f45a468295c47e3a3 - -COCOAPODS: 0.39.0 diff --git a/Example/Pods/Headers/Private/CZPicker/CZPicker.h b/Example/Pods/Headers/Private/CZPicker/CZPicker.h deleted file mode 120000 index 6abad11..0000000 --- a/Example/Pods/Headers/Private/CZPicker/CZPicker.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../Pod/Classes/CZPicker.h \ No newline at end of file diff --git a/Example/Pods/Headers/Private/CZPicker/CZPickerView.h b/Example/Pods/Headers/Private/CZPicker/CZPickerView.h deleted file mode 120000 index 36e4867..0000000 --- a/Example/Pods/Headers/Private/CZPicker/CZPickerView.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../Pod/Classes/CZPickerView.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/CZPicker/CZPicker.h b/Example/Pods/Headers/Public/CZPicker/CZPicker.h deleted file mode 120000 index 6abad11..0000000 --- a/Example/Pods/Headers/Public/CZPicker/CZPicker.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../Pod/Classes/CZPicker.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/CZPicker/CZPickerView.h b/Example/Pods/Headers/Public/CZPicker/CZPickerView.h deleted file mode 120000 index 36e4867..0000000 --- a/Example/Pods/Headers/Public/CZPicker/CZPickerView.h +++ /dev/null @@ -1 +0,0 @@ -../../../../../Pod/Classes/CZPickerView.h \ No newline at end of file diff --git a/Example/Pods/Local Podspecs/CZPicker.podspec.json b/Example/Pods/Local Podspecs/CZPicker.podspec.json deleted file mode 100644 index cd6c89e..0000000 --- a/Example/Pods/Local Podspecs/CZPicker.podspec.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "CZPicker", - "version": "0.3.7", - "summary": "CZPicker is a picker view shown as a popup.", - "description": "CZPicker is flexible. It is shown as a popup with customizations.", - "homepage": "https://github.com/chenzeyu/CZPicker", - "license": "MIT", - "authors": { - "chenzeyu": "zeyufly@gmail.com" - }, - "source": { - "git": "https://github.com/chenzeyu/CZPicker.git", - "tag": "0.3.7" - }, - "social_media_url": "https://twitter.com/chenzeyu", - "platforms": { - "ios": "8.0" - }, - "requires_arc": true, - "source_files": "Pod/Classes/*", - "resource_bundles": { - "CZPicker": [ - "Pod/Assets/*.png" - ] - }, - "public_header_files": "Pod/Classes/*.h", - "frameworks": "UIKit" -} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock deleted file mode 100644 index e35ebdc..0000000 --- a/Example/Pods/Manifest.lock +++ /dev/null @@ -1,14 +0,0 @@ -PODS: - - CZPicker (0.3.7) - -DEPENDENCIES: - - CZPicker (from `../`) - -EXTERNAL SOURCES: - CZPicker: - :path: "../" - -SPEC CHECKSUMS: - CZPicker: c5dc1f70c4fe48e1a5a06c0f45a468295c47e3a3 - -COCOAPODS: 0.39.0 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 4570211..0000000 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,669 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 1ABACCF57A3966AF2E2258552CF5289E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */; }; - 3F64E419EF8EC139DA599FBAB94EA655 /* CZPicker.h in Headers */ = {isa = PBXBuildFile; fileRef = 05823B33F3AA654C5493D2EBA324C534 /* CZPicker.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 41B84C936226775F9EECDDF843765BAE /* Pods-CZPicker_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 620321FD54EAEC4E73DCF9D6CF951CB6 /* Pods-CZPicker_Example-dummy.m */; }; - 62861968DA0CCA5F4884BCA2FB17FBF6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */; }; - 6FBFEFE277F0543B1D6FA5660AD61D34 /* CZPicker-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B4C01293059A0C84FDC79339100EBAED /* CZPicker-dummy.m */; }; - 8E3EFA64B7C9E90118E8E93C843D3941 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */; }; - 9576099345E08DE8991DA98208F2E073 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */; }; - 95DA62054A71898F375A4F3B9C7FFC3C /* CZPickerView.h in Headers */ = {isa = PBXBuildFile; fileRef = 480F91681CE8564A2A4F0992920173CC /* CZPickerView.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C2AD7BF66C385323EBC4DC57AC63B8A7 /* Pods-CZPicker_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5818C11FD1133B01C263AEC508AD4 /* Pods-CZPicker_Tests-dummy.m */; }; - D787049EFB40814C8018D6AB53C00207 /* CZPickerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 43093CEC2F1EBDB8542C2E274F31A0D1 /* CZPickerView.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 7B5644FED90468C749F7242E612D6071 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 1246D72EBE9DC6C28D83D23CB8AB1488; - remoteInfo = "CZPicker-CZPicker"; - }; - BF7C45F0EEE145F6EADCF7CFDEDC4F74 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 66BAFE48E61D0FD962914D7A750DE26A; - remoteInfo = CZPicker; - }; - D46ED80932F6019AF82B7CF470832ECC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 66BAFE48E61D0FD962914D7A750DE26A; - remoteInfo = CZPicker; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 03A57C78B6F5C7473BFB72D02E1B6DC7 /* Pods-CZPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CZPicker_Tests.debug.xcconfig"; sourceTree = ""; }; - 05823B33F3AA654C5493D2EBA324C534 /* CZPicker.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = CZPicker.h; sourceTree = ""; }; - 093B0C84ABCF4349ECD3165631BC4B8B /* Pods-CZPicker_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CZPicker_Tests-frameworks.sh"; sourceTree = ""; }; - 15721EFC16959E9C1D628A89E5A49E90 /* Pods-CZPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CZPicker_Example.release.xcconfig"; sourceTree = ""; }; - 225971A92D5E9C21EDF30698BB5D9433 /* Pods-CZPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CZPicker_Tests.release.xcconfig"; sourceTree = ""; }; - 3E45447A7DA5A389AFD5C78994A95782 /* Pods-CZPicker_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CZPicker_Tests-acknowledgements.markdown"; sourceTree = ""; }; - 41C437379AD6A450BCF0F982580453DD /* CZPicker-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CZPicker-prefix.pch"; sourceTree = ""; }; - 43093CEC2F1EBDB8542C2E274F31A0D1 /* CZPickerView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = CZPickerView.m; sourceTree = ""; }; - 480F91681CE8564A2A4F0992920173CC /* CZPickerView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = CZPickerView.h; sourceTree = ""; }; - 486462EB47FB92B838AC1625E3613DD3 /* libPods-CZPicker_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CZPicker_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4EBFC09A7B744C9C8C33775B54D3E5CB /* Pods-CZPicker_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CZPicker_Tests-acknowledgements.plist"; sourceTree = ""; }; - 4FB47F20FED884168358E21E9AE6C4AE /* CZPicker.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CZPicker.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 52B62A4EDA8D108C23BE394F3A3C3456 /* Pods-CZPicker_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CZPicker_Example-resources.sh"; sourceTree = ""; }; - 620321FD54EAEC4E73DCF9D6CF951CB6 /* Pods-CZPicker_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CZPicker_Example-dummy.m"; sourceTree = ""; }; - 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 8D126728FAC2ACD287DF9FBC37D12CC5 /* Pods-CZPicker_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CZPicker_Tests-resources.sh"; sourceTree = ""; }; - 9E483E1C7DAC180BFA436CBCA8F52712 /* Pods-CZPicker_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CZPicker_Example-acknowledgements.markdown"; sourceTree = ""; }; - A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CZPicker.xcconfig; sourceTree = ""; }; - B4C01293059A0C84FDC79339100EBAED /* CZPicker-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CZPicker-dummy.m"; sourceTree = ""; }; - B6F6FD7973C4A5256D96C2092522FDD8 /* Pods-CZPicker_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CZPicker_Example-acknowledgements.plist"; sourceTree = ""; }; - BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - BAAA6C79C7F01E16B0DEA07E03AAE515 /* libPods-CZPicker_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CZPicker_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - D011DE3568AC3E8AACBAFB12839321BD /* Pods-CZPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CZPicker_Example.debug.xcconfig"; sourceTree = ""; }; - D62BC46E83E7AC61D892E5D6D684756D /* Pods-CZPicker_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CZPicker_Example-frameworks.sh"; sourceTree = ""; }; - DAA9C19F4180ABA8546938B86D2465E7 /* libCZPicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCZPicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; - E2F5818C11FD1133B01C263AEC508AD4 /* Pods-CZPicker_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CZPicker_Tests-dummy.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 08EB69F20F4114F1580753DD09B6E7C3 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 62861968DA0CCA5F4884BCA2FB17FBF6 /* Foundation.framework in Frameworks */, - 8E3EFA64B7C9E90118E8E93C843D3941 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 382106383C7371DC3CEA951C7E6A05E3 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B4387D30C425EDEDED641CB69EE3293D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9576099345E08DE8991DA98208F2E073 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E3DD93657E782327913BFD7739D1533D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1ABACCF57A3966AF2E2258552CF5289E /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 0AADFBAA04CD3CAF92B13C952561B339 /* Pods-CZPicker_Tests */ = { - isa = PBXGroup; - children = ( - 3E45447A7DA5A389AFD5C78994A95782 /* Pods-CZPicker_Tests-acknowledgements.markdown */, - 4EBFC09A7B744C9C8C33775B54D3E5CB /* Pods-CZPicker_Tests-acknowledgements.plist */, - E2F5818C11FD1133B01C263AEC508AD4 /* Pods-CZPicker_Tests-dummy.m */, - 093B0C84ABCF4349ECD3165631BC4B8B /* Pods-CZPicker_Tests-frameworks.sh */, - 8D126728FAC2ACD287DF9FBC37D12CC5 /* Pods-CZPicker_Tests-resources.sh */, - 03A57C78B6F5C7473BFB72D02E1B6DC7 /* Pods-CZPicker_Tests.debug.xcconfig */, - 225971A92D5E9C21EDF30698BB5D9433 /* Pods-CZPicker_Tests.release.xcconfig */, - ); - name = "Pods-CZPicker_Tests"; - path = "Target Support Files/Pods-CZPicker_Tests"; - sourceTree = ""; - }; - 1101649735A34D6AD3A4858AFF86666B /* Support Files */ = { - isa = PBXGroup; - children = ( - A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */, - B4C01293059A0C84FDC79339100EBAED /* CZPicker-dummy.m */, - 41C437379AD6A450BCF0F982580453DD /* CZPicker-prefix.pch */, - ); - name = "Support Files"; - path = "Example/Pods/Target Support Files/CZPicker"; - sourceTree = ""; - }; - 18340F12838DEE43507667CC74401EB1 /* iOS */ = { - isa = PBXGroup; - children = ( - 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */, - C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */, - ); - name = iOS; - sourceTree = ""; - }; - 2FF5C2631536768519614A90967B4F11 /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - 78BC1FA81F494A1F2305E8DDDF1E16AB /* Pods-CZPicker_Example */, - 0AADFBAA04CD3CAF92B13C952561B339 /* Pods-CZPicker_Tests */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { - isa = PBXGroup; - children = ( - 18340F12838DEE43507667CC74401EB1 /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - 77CD4162DC34D1D1D273B948C88C7ED0 /* Development Pods */ = { - isa = PBXGroup; - children = ( - CDFED11B79FCA9D3EAEE58B0799FAACE /* CZPicker */, - ); - name = "Development Pods"; - sourceTree = ""; - }; - 78BC1FA81F494A1F2305E8DDDF1E16AB /* Pods-CZPicker_Example */ = { - isa = PBXGroup; - children = ( - 9E483E1C7DAC180BFA436CBCA8F52712 /* Pods-CZPicker_Example-acknowledgements.markdown */, - B6F6FD7973C4A5256D96C2092522FDD8 /* Pods-CZPicker_Example-acknowledgements.plist */, - 620321FD54EAEC4E73DCF9D6CF951CB6 /* Pods-CZPicker_Example-dummy.m */, - D62BC46E83E7AC61D892E5D6D684756D /* Pods-CZPicker_Example-frameworks.sh */, - 52B62A4EDA8D108C23BE394F3A3C3456 /* Pods-CZPicker_Example-resources.sh */, - D011DE3568AC3E8AACBAFB12839321BD /* Pods-CZPicker_Example.debug.xcconfig */, - 15721EFC16959E9C1D628A89E5A49E90 /* Pods-CZPicker_Example.release.xcconfig */, - ); - name = "Pods-CZPicker_Example"; - path = "Target Support Files/Pods-CZPicker_Example"; - sourceTree = ""; - }; - 7DB346D0F39D3F0E887471402A8071AB = { - isa = PBXGroup; - children = ( - BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, - 77CD4162DC34D1D1D273B948C88C7ED0 /* Development Pods */, - 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, - 99D9524F009A42B2659BE0749A2C232A /* Products */, - 2FF5C2631536768519614A90967B4F11 /* Targets Support Files */, - ); - sourceTree = ""; - }; - 99D9524F009A42B2659BE0749A2C232A /* Products */ = { - isa = PBXGroup; - children = ( - 4FB47F20FED884168358E21E9AE6C4AE /* CZPicker.bundle */, - DAA9C19F4180ABA8546938B86D2465E7 /* libCZPicker.a */, - BAAA6C79C7F01E16B0DEA07E03AAE515 /* libPods-CZPicker_Example.a */, - 486462EB47FB92B838AC1625E3613DD3 /* libPods-CZPicker_Tests.a */, - ); - name = Products; - sourceTree = ""; - }; - C03653284FFC5173E223FBDE0175A5C8 /* Classes */ = { - isa = PBXGroup; - children = ( - 05823B33F3AA654C5493D2EBA324C534 /* CZPicker.h */, - 480F91681CE8564A2A4F0992920173CC /* CZPickerView.h */, - 43093CEC2F1EBDB8542C2E274F31A0D1 /* CZPickerView.m */, - ); - path = Classes; - sourceTree = ""; - }; - CDFED11B79FCA9D3EAEE58B0799FAACE /* CZPicker */ = { - isa = PBXGroup; - children = ( - CFDCB56011C2487F89E302B46BE4109D /* Pod */, - 1101649735A34D6AD3A4858AFF86666B /* Support Files */, - ); - name = CZPicker; - path = ../..; - sourceTree = ""; - }; - CFDCB56011C2487F89E302B46BE4109D /* Pod */ = { - isa = PBXGroup; - children = ( - C03653284FFC5173E223FBDE0175A5C8 /* Classes */, - ); - path = Pod; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - FD33CC4C29AE25C0ED9950F469558EBC /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 3F64E419EF8EC139DA599FBAB94EA655 /* CZPicker.h in Headers */, - 95DA62054A71898F375A4F3B9C7FFC3C /* CZPickerView.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 1246D72EBE9DC6C28D83D23CB8AB1488 /* CZPicker-CZPicker */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3877C3A95EF70432EA6BC46CF55F1A9E /* Build configuration list for PBXNativeTarget "CZPicker-CZPicker" */; - buildPhases = ( - 3AA5E30A3D02B86CBB2E618E717605CB /* Sources */, - 382106383C7371DC3CEA951C7E6A05E3 /* Frameworks */, - 2C26AEF02C265D3741289DBC1C030E23 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "CZPicker-CZPicker"; - productName = "CZPicker-CZPicker"; - productReference = 4FB47F20FED884168358E21E9AE6C4AE /* CZPicker.bundle */; - productType = "com.apple.product-type.bundle"; - }; - 282A9B930668E426BF3DB9352425CEBF /* Pods-CZPicker_Example */ = { - isa = PBXNativeTarget; - buildConfigurationList = E8E77768FD9A67EA8937B74D9CAE9DCF /* Build configuration list for PBXNativeTarget "Pods-CZPicker_Example" */; - buildPhases = ( - 3C697184A9B3151E128D8A7F420E6D52 /* Sources */, - E3DD93657E782327913BFD7739D1533D /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 639CF85114200879135552676A3AE7F6 /* PBXTargetDependency */, - ); - name = "Pods-CZPicker_Example"; - productName = "Pods-CZPicker_Example"; - productReference = BAAA6C79C7F01E16B0DEA07E03AAE515 /* libPods-CZPicker_Example.a */; - productType = "com.apple.product-type.library.static"; - }; - 66BAFE48E61D0FD962914D7A750DE26A /* CZPicker */ = { - isa = PBXNativeTarget; - buildConfigurationList = B74C8CF3DB924E3136F42D30CEF937BC /* Build configuration list for PBXNativeTarget "CZPicker" */; - buildPhases = ( - B1616FC51AEF307146B6C27F562072FD /* Sources */, - 08EB69F20F4114F1580753DD09B6E7C3 /* Frameworks */, - FD33CC4C29AE25C0ED9950F469558EBC /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 23C8BD4D3E036C6A056E1849727EB2D2 /* PBXTargetDependency */, - ); - name = CZPicker; - productName = CZPicker; - productReference = DAA9C19F4180ABA8546938B86D2465E7 /* libCZPicker.a */; - productType = "com.apple.product-type.library.static"; - }; - 81F8CBD13AFD36A20461A3D835BE6243 /* Pods-CZPicker_Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = D58D6DC893341DC51D34F9B1CD4FCB91 /* Build configuration list for PBXNativeTarget "Pods-CZPicker_Tests" */; - buildPhases = ( - B5B7579B69CD40B5F81BB07C4CE48E8B /* Sources */, - B4387D30C425EDEDED641CB69EE3293D /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - E39CD11FC0BB19D729F054F90E36DFA0 /* PBXTargetDependency */, - ); - name = "Pods-CZPicker_Tests"; - productName = "Pods-CZPicker_Tests"; - productReference = 486462EB47FB92B838AC1625E3613DD3 /* libPods-CZPicker_Tests.a */; - productType = "com.apple.product-type.library.static"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0700; - }; - buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 7DB346D0F39D3F0E887471402A8071AB; - productRefGroup = 99D9524F009A42B2659BE0749A2C232A /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 66BAFE48E61D0FD962914D7A750DE26A /* CZPicker */, - 1246D72EBE9DC6C28D83D23CB8AB1488 /* CZPicker-CZPicker */, - 282A9B930668E426BF3DB9352425CEBF /* Pods-CZPicker_Example */, - 81F8CBD13AFD36A20461A3D835BE6243 /* Pods-CZPicker_Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2C26AEF02C265D3741289DBC1C030E23 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 3AA5E30A3D02B86CBB2E618E717605CB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3C697184A9B3151E128D8A7F420E6D52 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 41B84C936226775F9EECDDF843765BAE /* Pods-CZPicker_Example-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B1616FC51AEF307146B6C27F562072FD /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6FBFEFE277F0543B1D6FA5660AD61D34 /* CZPicker-dummy.m in Sources */, - D787049EFB40814C8018D6AB53C00207 /* CZPickerView.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B5B7579B69CD40B5F81BB07C4CE48E8B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C2AD7BF66C385323EBC4DC57AC63B8A7 /* Pods-CZPicker_Tests-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 23C8BD4D3E036C6A056E1849727EB2D2 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "CZPicker-CZPicker"; - target = 1246D72EBE9DC6C28D83D23CB8AB1488 /* CZPicker-CZPicker */; - targetProxy = 7B5644FED90468C749F7242E612D6071 /* PBXContainerItemProxy */; - }; - 639CF85114200879135552676A3AE7F6 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = CZPicker; - target = 66BAFE48E61D0FD962914D7A750DE26A /* CZPicker */; - targetProxy = BF7C45F0EEE145F6EADCF7CFDEDC4F74 /* PBXContainerItemProxy */; - }; - E39CD11FC0BB19D729F054F90E36DFA0 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = CZPicker; - target = 66BAFE48E61D0FD962914D7A750DE26A /* CZPicker */; - targetProxy = D46ED80932F6019AF82B7CF470832ECC /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 29267BDA22412243A72005AC365F398C /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = CZPicker; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 2F1F43F902F006D92E504AA8F49E166B /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/CZPicker/CZPicker-prefix.pch"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PRIVATE_HEADERS_FOLDER_PATH = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = ""; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 444A0B4788CBA8BBCDE86BA8E7954494 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = D011DE3568AC3E8AACBAFB12839321BD /* Pods-CZPicker_Example.debug.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - A6F818AB413861516C5A6ABCD9EA7E77 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 15721EFC16959E9C1D628A89E5A49E90 /* Pods-CZPicker_Example.release.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Release; - }; - A70CDAD61F90AC503C7D04CC22DA2923 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - ONLY_ACTIVE_ARCH = YES; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - C768514258F495FF687D2A47EE6E3D09 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 225971A92D5E9C21EDF30698BB5D9433 /* Pods-CZPicker_Tests.release.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Release; - }; - C92E6ABFC70AEDDBADDB2679E9AE7F42 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 03A57C78B6F5C7473BFB72D02E1B6DC7 /* Pods-CZPicker_Tests.debug.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - D6C453EBC7116DFBC31CE75DB180CB03 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/CZPicker/CZPicker-prefix.pch"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PRIVATE_HEADERS_FOLDER_PATH = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = ""; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Release; - }; - E7F4F45F3D3F7F69A6CA23884B9219AA /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A2E5134851CC00670D1BBDCCAEBCBA48 /* CZPicker.xcconfig */; - buildSettings = { - ENABLE_STRICT_OBJC_MSGSEND = YES; - PRODUCT_NAME = CZPicker; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - FB45FFD90572718D82AB9092B750F0CA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A70CDAD61F90AC503C7D04CC22DA2923 /* Debug */, - FB45FFD90572718D82AB9092B750F0CA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3877C3A95EF70432EA6BC46CF55F1A9E /* Build configuration list for PBXNativeTarget "CZPicker-CZPicker" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 29267BDA22412243A72005AC365F398C /* Debug */, - E7F4F45F3D3F7F69A6CA23884B9219AA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B74C8CF3DB924E3136F42D30CEF937BC /* Build configuration list for PBXNativeTarget "CZPicker" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2F1F43F902F006D92E504AA8F49E166B /* Debug */, - D6C453EBC7116DFBC31CE75DB180CB03 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - D58D6DC893341DC51D34F9B1CD4FCB91 /* Build configuration list for PBXNativeTarget "Pods-CZPicker_Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C92E6ABFC70AEDDBADDB2679E9AE7F42 /* Debug */, - C768514258F495FF687D2A47EE6E3D09 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - E8E77768FD9A67EA8937B74D9CAE9DCF /* Build configuration list for PBXNativeTarget "Pods-CZPicker_Example" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 444A0B4788CBA8BBCDE86BA8E7954494 /* Debug */, - A6F818AB413861516C5A6ABCD9EA7E77 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; -} diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/CZPicker.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/CZPicker.xcscheme deleted file mode 100644 index ca17fd4..0000000 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/CZPicker.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker-CZPicker.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker-CZPicker.xcscheme deleted file mode 100644 index e8018cf..0000000 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker-CZPicker.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker.xcscheme deleted file mode 100644 index 634f6d4..0000000 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Example-CZPicker.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker-CZPicker.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker-CZPicker.xcscheme deleted file mode 100644 index c5a4d77..0000000 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker-CZPicker.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker.xcscheme deleted file mode 100644 index d0e8192..0000000 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-CZPicker_Tests-CZPicker.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Example/Pods/Target Support Files/CZPicker/CZPicker-dummy.m b/Example/Pods/Target Support Files/CZPicker/CZPicker-dummy.m deleted file mode 100644 index f623545..0000000 --- a/Example/Pods/Target Support Files/CZPicker/CZPicker-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_CZPicker : NSObject -@end -@implementation PodsDummy_CZPicker -@end diff --git a/Example/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch b/Example/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch deleted file mode 100644 index aa992a4..0000000 --- a/Example/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - diff --git a/Example/Pods/Target Support Files/CZPicker/CZPicker.xcconfig b/Example/Pods/Target Support Files/CZPicker/CZPicker.xcconfig deleted file mode 100644 index bb98630..0000000 --- a/Example/Pods/Target Support Files/CZPicker/CZPicker.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CZPicker" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_LDFLAGS = -framework "UIKit" -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.markdown deleted file mode 100644 index 2cfa804..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.markdown +++ /dev/null @@ -1,27 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## CZPicker - -Copyright (c) 2015 chenzeyu -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Generated by CocoaPods - http://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.plist deleted file mode 100644 index a760560..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-acknowledgements.plist +++ /dev/null @@ -1,57 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2015 chenzeyu <zeyufly@gmail.com> -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - CZPicker - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - http://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-dummy.m b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-dummy.m deleted file mode 100644 index 6e1dfb2..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_CZPicker_Example : NSObject -@end -@implementation PodsDummy_Pods_CZPicker_Example -@end diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-frameworks.sh b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-frameworks.sh deleted file mode 100755 index 6f76344..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-frameworks.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current file - archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" - stripped="" - for arch in $archs; do - if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi -} - diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-resources.sh b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-resources.sh deleted file mode 100755 index 120c252..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example-resources.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY="$(cd "${1%/*}" && pwd)" - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_resource "${BUILT_PRODUCTS_DIR}/CZPicker.bundle" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_resource "${BUILT_PRODUCTS_DIR}/CZPicker.bundle" -fi - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.debug.xcconfig b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.debug.xcconfig deleted file mode 100644 index aa6832e..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.debug.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_LDFLAGS = $(inherited) -ObjC -l"CZPicker" -framework "UIKit" -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.release.xcconfig b/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.release.xcconfig deleted file mode 100644 index aa6832e..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Example/Pods-CZPicker_Example.release.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_LDFLAGS = $(inherited) -ObjC -l"CZPicker" -framework "UIKit" -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.markdown deleted file mode 100644 index 2cfa804..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.markdown +++ /dev/null @@ -1,27 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## CZPicker - -Copyright (c) 2015 chenzeyu -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Generated by CocoaPods - http://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.plist deleted file mode 100644 index a760560..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-acknowledgements.plist +++ /dev/null @@ -1,57 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2015 chenzeyu <zeyufly@gmail.com> -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - CZPicker - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - http://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-dummy.m deleted file mode 100644 index 9c8bf4b..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_CZPicker_Tests : NSObject -@end -@implementation PodsDummy_Pods_CZPicker_Tests -@end diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-frameworks.sh b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-frameworks.sh deleted file mode 100755 index 6f76344..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-frameworks.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current file - archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" - stripped="" - for arch in $archs; do - if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi -} - diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-resources.sh b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-resources.sh deleted file mode 100755 index 120c252..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests-resources.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY="$(cd "${1%/*}" && pwd)" - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_resource "${BUILT_PRODUCTS_DIR}/CZPicker.bundle" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_resource "${BUILT_PRODUCTS_DIR}/CZPicker.bundle" -fi - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.debug.xcconfig deleted file mode 100644 index aa6832e..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.debug.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_LDFLAGS = $(inherited) -ObjC -l"CZPicker" -framework "UIKit" -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.release.xcconfig deleted file mode 100644 index aa6832e..0000000 --- a/Example/Pods/Target Support Files/Pods-CZPicker_Tests/Pods-CZPicker_Tests.release.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CZPicker" -OTHER_LDFLAGS = $(inherited) -ObjC -l"CZPicker" -framework "UIKit" -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist deleted file mode 100644 index 169b6f7..0000000 --- a/Example/Tests/Tests-Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch deleted file mode 100644 index c99ea75..0000000 --- a/Example/Tests/Tests-Prefix.pch +++ /dev/null @@ -1,4 +0,0 @@ -// The contents of this file are implicitly included at the beginning of every test case source file. - -#ifdef __OBJC__ -#endif diff --git a/Example/Tests/Tests.m b/Example/Tests/Tests.m deleted file mode 100644 index 48e44db..0000000 --- a/Example/Tests/Tests.m +++ /dev/null @@ -1,8 +0,0 @@ -// -// CZPickerTests.m -// CZPickerTests -// -// Created by chenzeyu on 06/27/2015. -// Copyright (c) 2015 chenzeyu. All rights reserved. -// - diff --git a/Example/Tests/en.lproj/InfoPlist.strings b/Example/Tests/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28f..0000000 --- a/Example/Tests/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/LICENSE b/LICENSE deleted file mode 100644 index edaee9b..0000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2015 chenzeyu -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Pod/Assets/.gitkeep b/Pod/Assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/Pod/Classes/.gitkeep b/Pod/Classes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/Pod/Classes/CZPicker.h b/Pod/Classes/CZPicker.h deleted file mode 100644 index e325d06..0000000 --- a/Pod/Classes/CZPicker.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// CZPicker.h -// Pods -// -// Created by chenzeyu on 21/7/15. -// -// - -#ifndef Pods_CZPicker_h -#define Pods_CZPicker_h -#import "CZPickerView.h" -#endif diff --git a/README.md b/README.md index 301bc9c..bfa2900 100644 --- a/README.md +++ b/README.md @@ -1,152 +1,78 @@ -# CZPicker +# RSPickerView -[![CI Status](http://img.shields.io/travis/chenzeyu/CZPicker.svg?style=flat)](https://travis-ci.org/chenzeyu/CZPicker) -[![Version](https://img.shields.io/cocoapods/v/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) -[![License](https://img.shields.io/cocoapods/l/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) -[![Platform](https://img.shields.io/cocoapods/p/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) +Watch the demo video: -## Demo -![](demo.gif) +[![RSPickerView](http://img.youtube.com/vi/36i5PN2-MBQ/0.jpg)](https://youtu.be/36i5PN2-MBQ) -## Change Log -3 most recent changes are listed here. -Full [change logs](CHANGELOG.md) +--------------------------------------- -### v0.4.3 - 2016-08-12 -- Added ```- (void)czpickerViewWillDisplay:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewDidDisplay:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewWillDismiss:(CZPickerView *)pickerView;``` -- Added ```- (void)czpickerViewDidDismiss:(CZPickerView *)pickerView;``` -- Added ```- (void)reloadData``` to reload picker. -- Added ```- (void)showInContainer:(id)container```. +## Calculate Height of text: -### v0.4.2 - 2016-04-12 -- Improve orientation handler to avoid unnecessary pop up animations. +

(UsefulTool.h/UsefulTool.m 46)

+
+ (CGRect)alterHeightByTextString:(NSString *)aTextString originalRect:(CGRect)aOriginalRect font:(UIFont *)aFont {
+    CGSize size = CGSizeMake(aOriginalRect.size.width, 99999999);
+    CGRect textRect = [aTextString boundingRectWithSize:size
+                                                options:NSStringDrawingUsesLineFragmentOrigin
+                                             attributes:@{NSFontAttributeName:aFont}
+                                                context:nil];
+    aOriginalRect.size.height = textRect.size.height;
+    return aOriginalRect;
+}
+
-### v0.4.1 - 2016-04-10 -- Remove bundle resources setting in podspec file. +* * * -## Usage -CZPicker is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your Podfile: +## If you want to close picker by clicking background -```ruby -pod "CZPicker" -``` +

(CZPickerView.h/CZPickerView.m 237)

+
- (UIView *)buildBackgroundDimmingView {
+    ...
+    if (self.tapBackgroundToDismiss) {
+        [bgView addGestureRecognizer:
+         [[UITapGestureRecognizer alloc] initWithTarget:self
+                                                 action:@selector(cancelButtonPressed:)]];
+    }
+}
+
-To run the example project, clone the repo, and run `pod install` from the Example directory first. +* * * -### Swift -If you are using swift, please refer to swift demo project. -To show the picker, simply adding the following code: +## Use Custom Cell setting default textLabel frame and get it: -```objective-c -CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" - cancelButtonTitle:@"Cancel" - confirmButtonTitle:@"Confirm"]; -picker.delegate = self; -picker.dataSource = self; -[picker show]; -``` -and implement the dataSource and Delegate methods: +

(CZPickerView.h/CZPickerView.m 360)

+
- (CGFloat)getTextHeight:(NSString *)aText {
+    PickerViewTableViewCell *cell = [[PickerViewTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[PickerViewTableViewCell reusableIdentifer]];
+    return [UsefulTool alterHeightByTextString:aText originalRect:cell.originalTextLabelFrame font:PICKER_TEXT_FONT].size.height;
+}
+
-```objective-c -#prama mark - CZPickerViewDataSource +* * * -@required -/* number of items for picker */ -- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView; +## Change the TextLabel Height -@optional -/* - Implement at least one of the following method, - czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row has higer priority -*/ +

(CZPickerView.h/CZPickerView.m 405)

+
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+    ...
+    NSString *text = [cell.textLabel.text isEqualToString:@""] ? cell.textLabel.attributedText.string : cell.textLabel.text;
+    //  REBECCA MARK - CALCULATE HEIGHT AND CHANGE UILABEL HEIGHT
+    CGFloat defaultH = [self getTextHeight:text];
+    [cell setTitleHeight:defaultH];
+}
+
-/* attributed picker item title for each row */ -- (NSAttributedString *)czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row; +* * * -/* picker item title for each row */ -- (NSString *)czpickerView:(CZPickerView *)pickerView - titleForRow:(NSInteger)row; +## Get the text height to set tableView cell height - - -#prama mark - CZPickerViewDelegate -@optional -/** delegate method for picking one item */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemAtRow:(NSInteger)row; - -/** delegate method for picking multiple items, - implement this method if allowMultipleSelection is YES, - rows is an array of NSNumbers - */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemsAtRows:(NSArray *)rows; -/** delegate method for canceling */ -- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView; -``` - -## Customization -There are a lot of things can be customized, change the following properties to customize the picker of your own: - -```objective-c -/** whether to show footer (including confirm and cancel buttons), default NO */ -@property BOOL needFooterView; - -/** whether allow tap background to dismiss the picker, default YES */ -@property BOOL tapBackgroundToDismiss; - -/** whether allow selection of multiple items/rows, default NO, if this - property is YES, then footerView will be shown */ -@property BOOL allowMultipleSelection; - -/** picker header background color */ -@property (nonatomic, strong) UIColor *headerBackgroundColor; - -/** picker header title color */ -@property (nonatomic, strong) UIColor *headerTitleColor; - -/** picker cancel button background color */ -@property (nonatomic, strong) UIColor *cancelButtonBackgroundColor; - -/** picker cancel button normal state color */ -@property (nonatomic, strong) UIColor *cancelButtonNormalColor; - -/** picker cancel button highlighted state color */ -@property (nonatomic, strong) UIColor *cancelButtonHighlightedColor; - -/** picker confirm button background color */ -@property (nonatomic, strong) UIColor *confirmButtonBackgroundColor; - -/** picker confirm button normal state color */ -@property (nonatomic, strong) UIColor *confirmButtonNormalColor; - -/** picker confirm button highlighted state color */ -@property (nonatomic, strong) UIColor *confirmButtonHighlightedColor; - -/** picker's animation duration for showing and dismissing*/ -@property CGFloat animationDuration; - -``` - - - -## Author - -chenzeyu, zeyufly@gmail.com - -## License - -CZPicker is available under the MIT license. See the LICENSE file for more info. - -## Credits - -CZPicker is created at and supported by [Fooyo.sg](http://fooyo.sg) +

(CZPickerView.h/CZPickerView.m 419)

+
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
+    ...
+    //  REBECCA MARK - CALCULATE HEIGHT AND CHANGE CELL HEIGHT
+    CGFloat defaultH = [self getTextHeight:title];
+    return defaultH + 10 * Scale > CZP_HEIGHT ? defaultH + 10 * Scale : CZP_HEIGHT;
+}
+
diff --git a/RSPickerViewDemo.xcodeproj/project.pbxproj b/RSPickerViewDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..15c4948 --- /dev/null +++ b/RSPickerViewDemo.xcodeproj/project.pbxproj @@ -0,0 +1,357 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 4090D44621080C33004E6B34 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D44521080C33004E6B34 /* AppDelegate.m */; }; + 4090D44921080C33004E6B34 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D44821080C33004E6B34 /* ViewController.m */; }; + 4090D44E21080C36004E6B34 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4090D44D21080C36004E6B34 /* Assets.xcassets */; }; + 4090D45421080C36004E6B34 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D45321080C36004E6B34 /* main.m */; }; + 4090D47C21080C9E004E6B34 /* CZPickerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D47821080C9E004E6B34 /* CZPickerView.m */; }; + 4090D48021080CE9004E6B34 /* PickerViewTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D47E21080CE9004E6B34 /* PickerViewTableViewCell.m */; }; + 4090D48421080D1F004E6B34 /* UsefulTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 4090D48321080D1F004E6B34 /* UsefulTool.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4090D44121080C33004E6B34 /* RSPickerViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RSPickerViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4090D44421080C33004E6B34 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 4090D44521080C33004E6B34 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 4090D44721080C33004E6B34 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 4090D44821080C33004E6B34 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 4090D44D21080C36004E6B34 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4090D45221080C36004E6B34 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4090D45321080C36004E6B34 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 4090D47821080C9E004E6B34 /* CZPickerView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CZPickerView.m; sourceTree = ""; }; + 4090D47A21080C9E004E6B34 /* CZPickerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CZPickerView.h; sourceTree = ""; }; + 4090D47E21080CE9004E6B34 /* PickerViewTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PickerViewTableViewCell.m; sourceTree = ""; }; + 4090D47F21080CE9004E6B34 /* PickerViewTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PickerViewTableViewCell.h; sourceTree = ""; }; + 4090D48221080D1F004E6B34 /* UsefulTool.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UsefulTool.h; sourceTree = ""; }; + 4090D48321080D1F004E6B34 /* UsefulTool.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UsefulTool.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4090D43E21080C33004E6B34 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4090D43821080C33004E6B34 = { + isa = PBXGroup; + children = ( + 4090D44321080C33004E6B34 /* RSPickerViewDemo */, + 4090D44221080C33004E6B34 /* Products */, + ); + sourceTree = ""; + }; + 4090D44221080C33004E6B34 /* Products */ = { + isa = PBXGroup; + children = ( + 4090D44121080C33004E6B34 /* RSPickerViewDemo.app */, + ); + name = Products; + sourceTree = ""; + }; + 4090D44321080C33004E6B34 /* RSPickerViewDemo */ = { + isa = PBXGroup; + children = ( + 4090D44721080C33004E6B34 /* ViewController.h */, + 4090D44821080C33004E6B34 /* ViewController.m */, + 4090D47621080C9E004E6B34 /* RSPickerView */, + 4090D44421080C33004E6B34 /* AppDelegate.h */, + 4090D44521080C33004E6B34 /* AppDelegate.m */, + 4090D44D21080C36004E6B34 /* Assets.xcassets */, + 4090D45221080C36004E6B34 /* Info.plist */, + 4090D45321080C36004E6B34 /* main.m */, + ); + path = RSPickerViewDemo; + sourceTree = ""; + }; + 4090D47621080C9E004E6B34 /* RSPickerView */ = { + isa = PBXGroup; + children = ( + 4090D48121080CF0004E6B34 /* Tool */, + 4090D47D21080CE9004E6B34 /* CustomTableViewCell */, + 4090D47A21080C9E004E6B34 /* CZPickerView.h */, + 4090D47821080C9E004E6B34 /* CZPickerView.m */, + ); + path = RSPickerView; + sourceTree = ""; + }; + 4090D47D21080CE9004E6B34 /* CustomTableViewCell */ = { + isa = PBXGroup; + children = ( + 4090D47F21080CE9004E6B34 /* PickerViewTableViewCell.h */, + 4090D47E21080CE9004E6B34 /* PickerViewTableViewCell.m */, + ); + path = CustomTableViewCell; + sourceTree = ""; + }; + 4090D48121080CF0004E6B34 /* Tool */ = { + isa = PBXGroup; + children = ( + 4090D48221080D1F004E6B34 /* UsefulTool.h */, + 4090D48321080D1F004E6B34 /* UsefulTool.m */, + ); + path = Tool; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4090D44021080C33004E6B34 /* RSPickerViewDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4090D46D21080C36004E6B34 /* Build configuration list for PBXNativeTarget "RSPickerViewDemo" */; + buildPhases = ( + 4090D43D21080C33004E6B34 /* Sources */, + 4090D43E21080C33004E6B34 /* Frameworks */, + 4090D43F21080C33004E6B34 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RSPickerViewDemo; + productName = RSPickerViewDemo; + productReference = 4090D44121080C33004E6B34 /* RSPickerViewDemo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4090D43921080C33004E6B34 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = "Rebecca Huang"; + TargetAttributes = { + 4090D44021080C33004E6B34 = { + CreatedOnToolsVersion = 9.4.1; + }; + }; + }; + buildConfigurationList = 4090D43C21080C33004E6B34 /* Build configuration list for PBXProject "RSPickerViewDemo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4090D43821080C33004E6B34; + productRefGroup = 4090D44221080C33004E6B34 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4090D44021080C33004E6B34 /* RSPickerViewDemo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4090D43F21080C33004E6B34 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4090D44E21080C36004E6B34 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4090D43D21080C33004E6B34 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4090D47C21080C9E004E6B34 /* CZPickerView.m in Sources */, + 4090D48021080CE9004E6B34 /* PickerViewTableViewCell.m in Sources */, + 4090D44921080C33004E6B34 /* ViewController.m in Sources */, + 4090D45421080C36004E6B34 /* main.m in Sources */, + 4090D44621080C33004E6B34 /* AppDelegate.m in Sources */, + 4090D48421080D1F004E6B34 /* UsefulTool.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4090D46B21080C36004E6B34 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 4090D46C21080C36004E6B34 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 4090D46E21080C36004E6B34 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HL83Y955L6; + INFOPLIST_FILE = RSPickerViewDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = www.rebecca.RSPickerViewDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 4090D46F21080C36004E6B34 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HL83Y955L6; + INFOPLIST_FILE = RSPickerViewDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = www.rebecca.RSPickerViewDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4090D43C21080C33004E6B34 /* Build configuration list for PBXProject "RSPickerViewDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4090D46B21080C36004E6B34 /* Debug */, + 4090D46C21080C36004E6B34 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4090D46D21080C36004E6B34 /* Build configuration list for PBXNativeTarget "RSPickerViewDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4090D46E21080C36004E6B34 /* Debug */, + 4090D46F21080C36004E6B34 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4090D43921080C33004E6B34 /* Project object */; +} diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/RSPickerViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 67% rename from Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to RSPickerViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 919434a..a94e045 100644 --- a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/RSPickerViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:RSPickerViewDemo.xcodeproj"> diff --git a/RSPickerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/RSPickerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/RSPickerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/RSPickerViewDemo/AppDelegate.h b/RSPickerViewDemo/AppDelegate.h new file mode 100644 index 0000000..ba9d68a --- /dev/null +++ b/RSPickerViewDemo/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/Example/CZPicker/CZAppDelegate.m b/RSPickerViewDemo/AppDelegate.m similarity index 56% rename from Example/CZPicker/CZAppDelegate.m rename to RSPickerViewDemo/AppDelegate.m index 2ba2280..8c3e6c3 100644 --- a/Example/CZPicker/CZAppDelegate.m +++ b/RSPickerViewDemo/AppDelegate.m @@ -1,45 +1,60 @@ // -// CZAppDelegate.m -// CZPicker +// AppDelegate.m +// RSPickerViewDemo // -// Created by CocoaPods on 06/27/2015. -// Copyright (c) 2014 chenzeyu. All rights reserved. +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. // -#import "CZAppDelegate.h" +#import "AppDelegate.h" +#import "UsefulTool.h" +#import "ViewController.h" -@implementation CZAppDelegate +@interface AppDelegate () -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. + + UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:[[ViewController alloc] init]]; + + + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + [self.window setRootViewController:navigationController]; + [self.window setBackgroundColor:IsIPhoneX ? [UIColor whiteColor] : [UIColor blackColor]]; + [self.window makeKeyAndVisible]; + return YES; } - -- (void)applicationWillResignActive:(UIApplication *)application -{ + + +- (void)applicationWillResignActive:(UIApplication *)application { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } -- (void)applicationWillEnterForeground:(UIApplication *)application -{ - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } -- (void)applicationDidBecomeActive:(UIApplication *)application -{ + +- (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } -- (void)applicationWillTerminate:(UIApplication *)application -{ + +- (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } diff --git a/swift_demo/swift_demo/Assets.xcassets/AppIcon.appiconset/Contents.json b/RSPickerViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 73% rename from swift_demo/swift_demo/Assets.xcassets/AppIcon.appiconset/Contents.json rename to RSPickerViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json index eeea76c..d8db8d6 100644 --- a/swift_demo/swift_demo/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/RSPickerViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -30,6 +40,16 @@ "size" : "60x60", "scale" : "3x" }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, { "idiom" : "ipad", "size" : "29x29", @@ -64,6 +84,11 @@ "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/Example/CZPicker/Images.xcassets/Contents.json b/RSPickerViewDemo/Assets.xcassets/Contents.json similarity index 100% rename from Example/CZPicker/Images.xcassets/Contents.json rename to RSPickerViewDemo/Assets.xcassets/Contents.json diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Contents.json b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..f7c74ca --- /dev/null +++ b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,100 @@ +{ + "images" : [ + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "2436h", + "filename" : "Default@3x.png", + "minimum-system-version" : "11.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "736h", + "filename" : "Default@Retina55.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "667h", + "filename" : "Default@Retina47.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default@2x.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Default@Retina4.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default.png", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default@2x-1.png", + "extent" : "full-screen", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default@Retina4-1.png", + "extent" : "full-screen", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default.png new file mode 100644 index 0000000..0edc086 Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x-1.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x-1.png new file mode 100644 index 0000000..f62420f Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x-1.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x.png new file mode 100644 index 0000000..f62420f Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@2x.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@3x.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@3x.png new file mode 100644 index 0000000..2ce50f6 Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@3x.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4-1.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4-1.png new file mode 100644 index 0000000..5ee8ee8 Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4-1.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4.png new file mode 100644 index 0000000..5ee8ee8 Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina4.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina47.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina47.png new file mode 100644 index 0000000..faca10c Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina47.png differ diff --git a/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina55.png b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina55.png new file mode 100644 index 0000000..cda06fc Binary files /dev/null and b/RSPickerViewDemo/Assets.xcassets/LaunchImage.launchimage/Default@Retina55.png differ diff --git a/swift_demo/swift_demo/Info.plist b/RSPickerViewDemo/Info.plist similarity index 74% rename from swift_demo/swift_demo/Info.plist rename to RSPickerViewDemo/Info.plist index 40c6215..d63e64e 100644 --- a/swift_demo/swift_demo/Info.plist +++ b/RSPickerViewDemo/Info.plist @@ -3,7 +3,7 @@ CFBundleDevelopmentRegion - en + $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -16,16 +16,12 @@ APPL CFBundleShortVersionString 1.0 - CFBundleSignature - ???? CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main + DefaultImage UIRequiredDeviceCapabilities armv7 @@ -33,15 +29,11 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight diff --git a/Pod/Classes/CZPickerView.h b/RSPickerViewDemo/RSPickerView/CZPickerView.h old mode 100644 new mode 100755 similarity index 90% rename from Pod/Classes/CZPickerView.h rename to RSPickerViewDemo/RSPickerView/CZPickerView.h index f0a27e8..cdb73a0 --- a/Pod/Classes/CZPickerView.h +++ b/RSPickerViewDemo/RSPickerView/CZPickerView.h @@ -68,6 +68,8 @@ @end +typedef void (^CZDismissCompletionCallback)(void); + @interface CZPickerView : UIView /** Initialize the picker view with titles @@ -95,19 +97,19 @@ /** unselect all rows */ - (void)unselectAll; -@property id delegate; +@property (nonatomic, weak) id delegate; -@property id dataSource; +@property (nonatomic, weak) id dataSource; /** whether to show footer (including confirm and cancel buttons), default NO */ -@property BOOL needFooterView; +@property (nonatomic, assign) BOOL needFooterView; /** whether allow tap background to dismiss the picker, default YES */ -@property BOOL tapBackgroundToDismiss; +@property (nonatomic, assign) BOOL tapBackgroundToDismiss; /** whether allow selection of multiple items/rows, default NO, if this property is YES, then footerView will be shown */ -@property BOOL allowMultipleSelection; +@property (nonatomic, assign) BOOL allowMultipleSelection; /** picker header background color */ @property (nonatomic, strong) UIColor *headerBackgroundColor; @@ -145,4 +147,6 @@ /** width of picker */ @property CGFloat pickerWidth; +- (void)dismissPicker:(CZDismissCompletionCallback)completion; + @end diff --git a/Pod/Classes/CZPickerView.m b/RSPickerViewDemo/RSPickerView/CZPickerView.m old mode 100644 new mode 100755 similarity index 71% rename from Pod/Classes/CZPickerView.m rename to RSPickerViewDemo/RSPickerView/CZPickerView.m index f0bb444..5b47081 --- a/Pod/Classes/CZPickerView.m +++ b/RSPickerViewDemo/RSPickerView/CZPickerView.m @@ -6,30 +6,33 @@ // #import "CZPickerView.h" +#import "UsefulTool.h" +#import "PickerViewTableViewCell.h" -#define CZP_FOOTER_HEIGHT 44.0 -#define CZP_HEADER_HEIGHT 44.0 -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 +//#define CZP_FOOTER_HEIGHT 44.0 * Scale +//#define CZP_HEADER_HEIGHT 44.0 * Scale + +#define CZP_HEIGHT 44.0 * Scale + +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 #define CZP_BACKGROUND_ALPHA 0.9 #else #define CZP_BACKGROUND_ALPHA 0.3 #endif +@interface CZPickerView () +@property (nonatomic, strong) NSString *headerTitle; +@property (nonatomic, strong) NSString *cancelButtonTitle; +@property (nonatomic, strong) NSString *confirmButtonTitle; +@property (nonatomic, strong) UIView *backgroundDimmingView; +@property (nonatomic, strong) UIView *containerView; +@property (nonatomic, strong) UIView *headerView; +@property (nonatomic, strong) UIView *footerview; +@property (nonatomic, strong) UITableView *tableView; +@property (nonatomic, strong) NSMutableArray *selectedIndexPaths; +@property (nonatomic, assign) CGRect previousBounds; -typedef void (^CZDismissCompletionCallback)(void); - -@interface CZPickerView () -@property NSString *headerTitle; -@property NSString *cancelButtonTitle; -@property NSString *confirmButtonTitle; -@property UIView *backgroundDimmingView; -@property UIView *containerView; -@property UIView *headerView; -@property UIView *footerview; -@property UITableView *tableView; -@property NSMutableArray *selectedIndexPaths; -@property CGRect previousBounds; @end @implementation CZPickerView @@ -55,15 +58,15 @@ - (id)initWithHeaderTitle:(NSString *)headerTitle self.headerTitle = headerTitle ? headerTitle : @""; self.headerTitleColor = [UIColor whiteColor]; - self.headerBackgroundColor = [UIColor colorWithRed:56.0/255 green:185.0/255 blue:158.0/255 alpha:1]; + self.headerBackgroundColor = [UIColor orangeColor]; self.cancelButtonNormalColor = [UIColor colorWithRed:59.0/255 green:72/255.0 blue:5.0/255 alpha:1]; self.cancelButtonHighlightedColor = [UIColor grayColor]; self.cancelButtonBackgroundColor = [UIColor colorWithRed:236.0/255 green:240/255.0 blue:241.0/255 alpha:1]; self.confirmButtonNormalColor = [UIColor whiteColor]; - self.confirmButtonHighlightedColor = [UIColor colorWithRed:236.0/255 green:240/255.0 blue:241.0/255 alpha:1]; - self.confirmButtonBackgroundColor = [UIColor colorWithRed:56.0/255 green:185.0/255 blue:158.0/255 alpha:1]; + self.confirmButtonHighlightedColor = [UIColor whiteColor]; + self.confirmButtonBackgroundColor = [UIColor orangeColor]; _previousBounds = [UIScreen mainScreen].bounds; self.frame = _previousBounds; @@ -182,15 +185,30 @@ - (UITableView *)buildTableView{ CGAffineTransform transform = CGAffineTransformMake(widthRatio, 0, 0, 0.8, 0, 0); CGRect newRect = CGRectApplyAffineTransform(self.frame, transform); NSInteger n = [self.dataSource numberOfRowsInPickerView:self]; + + // REBECCA MARK - CALCULATE THE TOTAL HEIGHT OF TABLE CONTENT + + CGFloat totalH = 0.0f; + for (int i = 0; i < n; i++) { + NSString *title = [self.dataSource czpickerView:self titleForRow:i]; + CGFloat defaultH = [self getTextHeight:title]; + totalH += defaultH + 10 * Scale > CZP_HEIGHT ? defaultH + 10 * Scale : CZP_HEIGHT; + } + CGRect tableRect; - float heightOffset = CZP_HEADER_HEIGHT + CZP_FOOTER_HEIGHT; +// float heightOffset = CZP_HEADER_HEIGHT + CZP_FOOTER_HEIGHT; + float heightOffset = CZP_HEIGHT * 2; // Header and Footer if(n > 0){ - float height = n * 44.0; +// float height = n * 44.0; + + // REBECCA MARK - CHANGE HEIGHT TO VARIABLE + float height = totalH; height = height > newRect.size.height - heightOffset ? newRect.size.height -heightOffset : height; - tableRect = CGRectMake(0, 44.0, newRect.size.width, height); + tableRect = CGRectMake(0, CZP_HEIGHT, newRect.size.width, height); } else { - tableRect = CGRectMake(0, 44.0, newRect.size.width, newRect.size.height - heightOffset); + tableRect = CGRectMake(0, CZP_HEIGHT, newRect.size.width, newRect.size.height - heightOffset); } + UITableView *tableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStylePlain]; tableView.delegate = self; tableView.dataSource = self; @@ -215,11 +233,15 @@ - (UIView *)buildBackgroundDimmingView{ bgView.backgroundColor = [UIColor blackColor]; } bgView.alpha = 0.0; - if(self.tapBackgroundToDismiss){ - [bgView addGestureRecognizer: - [[UITapGestureRecognizer alloc] initWithTarget:self - action:@selector(cancelButtonPressed:)]]; - } + + // REBECCA MARK - IF YOU WANT TO CLOSE PICKER BY CLICK BACKGROUND, JUST USE FOLLOWING CODE + +// if(self.tapBackgroundToDismiss){ +// [bgView addGestureRecognizer: +// [[UITapGestureRecognizer alloc] initWithTarget:self +// action:@selector(cancelButtonPressed:)]]; +// } + return bgView; } @@ -227,20 +249,30 @@ - (UIView *)buildFooterView{ if (!self.needFooterView){ return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)]; } + CGRect rect = self.tableView.frame; + +// CGRect newRect = CGRectMake(0, +// rect.origin.y + rect.size.height, +// rect.size.width, +// CZP_FOOTER_HEIGHT); +// CGRect leftRect = CGRectMake(0,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); +// CGRect rightRect = CGRectMake(newRect.size.width /2,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); + CGRect newRect = CGRectMake(0, rect.origin.y + rect.size.height, rect.size.width, - CZP_FOOTER_HEIGHT); - CGRect leftRect = CGRectMake(0,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); - CGRect rightRect = CGRectMake(newRect.size.width /2,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); + CZP_HEIGHT); + CGRect leftRect = CGRectMake(0,0, newRect.size.width /2, CZP_HEIGHT); + CGRect rightRect = CGRectMake(newRect.size.width /2,0, newRect.size.width /2, CZP_HEIGHT); UIView *view = [[UIView alloc] initWithFrame:newRect]; UIButton *cancelButton = [[UIButton alloc] initWithFrame:leftRect]; [cancelButton setTitle:self.cancelButtonTitle forState:UIControlStateNormal]; [cancelButton setTitleColor: self.cancelButtonNormalColor forState:UIControlStateNormal]; [cancelButton setTitleColor:self.cancelButtonHighlightedColor forState:UIControlStateHighlighted]; - cancelButton.titleLabel.font = [UIFont boldSystemFontOfSize:16]; +// cancelButton.titleLabel.font = [UIFont boldSystemFontOfSize:17]; + cancelButton.titleLabel.font = PICKER_TEXT_FONT; cancelButton.backgroundColor = self.cancelButtonBackgroundColor; [cancelButton addTarget:self action:@selector(cancelButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; [view addSubview:cancelButton]; @@ -249,7 +281,8 @@ - (UIView *)buildFooterView{ [confirmButton setTitle:self.confirmButtonTitle forState:UIControlStateNormal]; [confirmButton setTitleColor:self.confirmButtonNormalColor forState:UIControlStateNormal]; [confirmButton setTitleColor:self.confirmButtonHighlightedColor forState:UIControlStateHighlighted]; - confirmButton.titleLabel.font = [UIFont systemFontOfSize:16]; +// confirmButton.titleLabel.font = [UIFont systemFontOfSize:17]; + confirmButton.titleLabel.font = PICKER_TEXT_FONT; confirmButton.backgroundColor = self.confirmButtonBackgroundColor; [confirmButton addTarget:self action:@selector(confirmButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; [view addSubview:confirmButton]; @@ -257,10 +290,11 @@ - (UIView *)buildFooterView{ } - (UIView *)buildHeaderView{ - UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, CZP_HEADER_HEIGHT)]; +// UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, CZP_HEADER_HEIGHT)]; + UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, CZP_HEIGHT)]; view.backgroundColor = self.headerBackgroundColor; - UIFont *headerFont = self.headerTitleFont == nil ? [UIFont systemFontOfSize:18.0] : self.headerTitleFont; + UIFont *headerFont = self.headerTitleFont == nil ? PICKER_TEXT_FONT : self.headerTitleFont; NSDictionary *dict = @{ NSForegroundColorAttributeName: self.headerTitleColor, @@ -275,7 +309,7 @@ - (UIView *)buildHeaderView{ return view; } -- (IBAction)cancelButtonPressed:(id)sender{ +- (void)cancelButtonPressed:(id)sender{ [self dismissPicker:^{ if([self.delegate respondsToSelector:@selector(czpickerViewDidClickCancelButton:)]){ [self.delegate czpickerViewDidClickCancelButton:self]; @@ -283,7 +317,7 @@ - (IBAction)cancelButtonPressed:(id)sender{ }]; } -- (IBAction)confirmButtonPressed:(id)sender{ +- (void)confirmButtonPressed:(id)sender{ [self dismissPicker:^{ if(self.allowMultipleSelection && [self.delegate respondsToSelector:@selector(czpickerView:didConfirmWithItemsAtRows:)]){ [self.delegate czpickerView:self didConfirmWithItemsAtRows:[self selectedRows]]; @@ -322,6 +356,12 @@ - (void)unselectAll { [self.tableView reloadData]; } +/** REBECCA MARK - Get UILabel Height by Calculating Text */ +- (CGFloat)getTextHeight:(NSString *)aText { + PickerViewTableViewCell *cell = [[PickerViewTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[PickerViewTableViewCell reusableIdentifer]]; + return [UsefulTool alterHeightByTextString:aText originalRect:cell.originalTextLabelFrame font:PICKER_TEXT_FONT].size.height; +} + #pragma mark - UITableViewDataSource - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ if ([self.dataSource respondsToSelector:@selector(numberOfRowsInPickerView:)]) { @@ -330,19 +370,27 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger return 1; } -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ - static NSString *cellIdentifier = @"czpicker_view_identifier"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + + // REBECCA MARK - USING CUSTOM TABLEVIEW CELL + PickerViewTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[PickerViewTableViewCell reusableIdentifer]]; + if (!cell) { - cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: cellIdentifier]; + cell = [[PickerViewTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[PickerViewTableViewCell reusableIdentifer]]; } - cell.accessoryType = UITableViewCellAccessoryNone; - for(NSIndexPath *ip in self.selectedIndexPaths){ - if(ip.row == indexPath.row){ - cell.accessoryType = UITableViewCellAccessoryCheckmark; + + // REBECCA MARK - CHECK IF "SELECTED INDEXPATHS" IS + BOOL isExist = NO; + for (NSIndexPath *ip in self.selectedIndexPaths) { + if (ip.row == indexPath.row) { + isExist = YES; + break; } } - if([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ + + cell.accessoryType = isExist ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone; + + if ([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ cell.textLabel.text = [self.dataSource czpickerView:self titleForRow:indexPath.row]; cell.imageView.image = [self.dataSource czpickerView:self imageForRow:indexPath.row]; } else if ([self.dataSource respondsToSelector:@selector(czpickerView:attributedTitleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ @@ -354,31 +402,56 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N cell.textLabel.text = [self.dataSource czpickerView:self titleForRow:indexPath.row]; } - if(self.checkmarkColor){ + NSString *text = [cell.textLabel.text isEqualToString:@""] ? cell.textLabel.attributedText.string : cell.textLabel.text; + + // REBECCA MARK - CALCULATE HEIGHT AND CHANGE UILABEL HEIGHT + CGFloat defaultH = [self getTextHeight:text]; + [cell setTitleHeight:defaultH]; + + if (self.checkmarkColor) cell.tintColor = self.checkmarkColor; - } + return cell; } #pragma mark - UITableViewDelegate + +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { + NSString *title = @""; + if([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ + title = [self.dataSource czpickerView:self titleForRow:indexPath.row]; + } else if ([self.dataSource respondsToSelector:@selector(czpickerView:attributedTitleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ + title = [self.dataSource czpickerView:self attributedTitleForRow:indexPath.row].string; + } else if ([self.dataSource respondsToSelector:@selector(czpickerView:attributedTitleForRow:)]) { + title = [self.dataSource czpickerView:self attributedTitleForRow:indexPath.row].string; + } else if([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)]){ + title = [self.dataSource czpickerView:self titleForRow:indexPath.row]; + } + + // REBECCA MARK - CALCULATE HEIGHT AND CHANGE CELL HEIGHT + CGFloat defaultH = [self getTextHeight:title]; + + return defaultH + 10 * Scale > CZP_HEIGHT ? defaultH + 10 * Scale : CZP_HEIGHT; +} + - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; [tableView deselectRowAtIndexPath:indexPath animated:YES]; - if(!self.selectedIndexPaths){ + if(!self.selectedIndexPaths) { self.selectedIndexPaths = [NSMutableArray new]; } // the row has already been selected - if (self.allowMultipleSelection){ - + if (self.allowMultipleSelection) { if([self.selectedIndexPaths containsObject:indexPath]){ + if (self.selectedIndexPaths.count == 0) return; + [self.selectedIndexPaths removeObject:indexPath]; cell.accessoryType = UITableViewCellAccessoryNone; } else { [self.selectedIndexPaths addObject:indexPath]; cell.accessoryType = UITableViewCellAccessoryCheckmark; } - } else { //single selection mode if (self.selectedIndexPaths.count > 0){// has selection @@ -389,11 +462,15 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath cell.accessoryType = UITableViewCellAccessoryCheckmark; [self.selectedIndexPaths removeObject:prevIp]; [self.selectedIndexPaths addObject:indexPath]; - } else {//same cell - cell.accessoryType = UITableViewCellAccessoryNone; - self.selectedIndexPaths = [NSMutableArray new]; + } else { + // same cell + if (self.selectedIndexPaths.count > 1) { + cell.accessoryType = UITableViewCellAccessoryNone; + self.selectedIndexPaths = [NSMutableArray new]; + } } - } else {//no selection + } else { + // no selection [self.selectedIndexPaths addObject:indexPath]; cell.accessoryType = UITableViewCellAccessoryCheckmark; } @@ -453,4 +530,5 @@ - (void)deviceOrientationDidChange:(NSNotification *)notification{ - (void)dealloc{ [[NSNotificationCenter defaultCenter] removeObserver:self]; } + @end diff --git a/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.h b/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.h new file mode 100644 index 0000000..90ae0e9 --- /dev/null +++ b/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.h @@ -0,0 +1,23 @@ +// +// PickerViewTableViewCell.h +// TBBMobileBank +// +// Created by MB6 on 2018/7/24. +// Copyright © 2018年 Taiwan Business Bank. All rights reserved. +// + +#import + +@interface PickerViewTableViewCell : UITableViewCell + +#pragma mark - Property + +@property (nonatomic, assign) CGFloat titleHeight; + +#pragma mark - Public Functions + +- (CGRect)originalTextLabelFrame; + ++ (NSString *)reusableIdentifer; + +@end diff --git a/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.m b/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.m new file mode 100644 index 0000000..c8143ec --- /dev/null +++ b/RSPickerViewDemo/RSPickerView/CustomTableViewCell/PickerViewTableViewCell.m @@ -0,0 +1,64 @@ +// +// PickerViewTableViewCell.m +// TBBMobileBank +// +// Created by MB6 on 2018/7/24. +// Copyright © 2018年 Taiwan Business Bank. All rights reserved. +// + +#import "PickerViewTableViewCell.h" +#import "UsefulTool.h" + +@implementation PickerViewTableViewCell + +#pragma mark - Initalized + +- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { + if (self != [super initWithStyle:style reuseIdentifier:reuseIdentifier]) return nil; + + self.accessoryType = UITableViewCellAccessoryNone; + + // init UILabel + [self.textLabel setTextAlignment:NSTextAlignmentLeft]; + [self.textLabel setTextColor:[UIColor blackColor]]; + [self.textLabel setFont:PICKER_TEXT_FONT]; + [self.textLabel setLineBreakMode:NSLineBreakByWordWrapping]; + [self.textLabel setNumberOfLines:0]; + [self.textLabel setAdjustsFontSizeToFitWidth:YES]; + [self.textLabel setMinimumScaleFactor:10 * Scale]; + + return self; +} + +#pragma mark - Override + +- (void)layoutSubviews { + [super layoutSubviews]; + + CGRect textLabelFrame = [self originalTextLabelFrame]; + if (self.titleHeight > 0.0f) + textLabelFrame.size.height = self.titleHeight; + [self.textLabel setFrame:textLabelFrame]; + [self.textLabel setCenter:CGPointMake(self.textLabel.center.x, CGRectGetHeight(self.frame) / 2)]; + + [self.accessoryView setCenter:CGPointMake(self.accessoryView.center.x, CGRectGetHeight(self.frame) / 2)]; +} + +#pragma mark - Property + +- (void)setTitleHeight:(CGFloat)aTitleHeight { + _titleHeight = aTitleHeight; +} + +- (CGRect)originalTextLabelFrame { + CGRect rect = CGRectMake(BASE_BLANK_WIDTH, BASE_BLANK_WIDTH / 2, 200 * Scale, 31 * Scale); + return rect; +} + +#pragma mark - Public Functions + ++ (NSString *)reusableIdentifer { + return @"czpicker_view_identifier"; +} + +@end diff --git a/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.h b/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.h new file mode 100644 index 0000000..1eae185 --- /dev/null +++ b/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.h @@ -0,0 +1,56 @@ +// +// UsefulTool.h +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import +#import + +#define Scale UsefulTool.singleton.scale + +#define BASE_BLANK_WIDTH 15 * Scale + +#define PICKER_TEXT_FONT [UIFont boldSystemFontOfSize:15 * Scale] + +#define IsIPhoneX ([UsefulTool singleton].deviceType == DeviceTypeX) + +#define IS_OS_8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) + +#define ScreenWidth (IS_OS_8_OR_LATER ? (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height) : [UIScreen mainScreen].bounds.size.width) + +#define ScreenHeight (IS_OS_8_OR_LATER ? (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width) : [UIScreen mainScreen].bounds.size.height) + +typedef NS_ENUM(NSInteger, CurrentDeviceType) { + DeviceTypeClassic = 0, + DeviceType4Or4s, + DeviceType5Or5sOr5cOrSE, + DeviceType6Or6sOr7Or8, + DeviceType6PlusOr6sPlus, + DeviceType8, + DeviceTypeX, + DeviceTypeUnknown, +}; + +@interface UsefulTool : NSObject + +/** SINGLETON */ ++ (instancetype)singleton; + +#pragma mark - Property + +/** SCALE OF INTERFACE */ +@property (nonatomic, readonly) CGFloat scale; + +/** DEVICE TYPE */ +@property (nonatomic, assign) CurrentDeviceType deviceType; + +#pragma mark - Public + +/** CALCULATE HEIGHT OF TEXT */ ++ (CGRect)alterHeightByTextString:(NSString *)aTextString originalRect:(CGRect)aOriginalRect font:(UIFont *)aFont; + + +@end diff --git a/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.m b/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.m new file mode 100644 index 0000000..b93fb1b --- /dev/null +++ b/RSPickerViewDemo/RSPickerView/Tool/UsefulTool.m @@ -0,0 +1,86 @@ +// +// UsefulTool.m +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import "UsefulTool.h" + +@implementation UsefulTool + +/** SINGLETON */ ++ (instancetype)singleton { + static UsefulTool *instance = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + instance = [[UsefulTool alloc] init]; + }); + return instance; +} + +#pragma mark - Initialized + +- (instancetype)init { + if (self != [super init]) return nil; + + // SCALE OF INTERFACE + + // Default SIZE:SE point 568 x 320 + CGSize designSize = CGSizeMake(320, 568); + if (!UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)) + designSize = CGSizeMake(569, 320); + + CGPoint scaling = CGPointMake(ScreenWidth / designSize.width, + ScreenHeight / designSize.height); +// _scale = scaling.x < scaling.y ? scaling.x : scaling.y; + _scale = scaling.x; + + return self; +} + +#pragma mark - Public + +/** CALCULATE HEIGHT OF TEXT */ ++ (CGRect)alterHeightByTextString:(NSString *)aTextString originalRect:(CGRect)aOriginalRect font:(UIFont *)aFont { + CGSize size = CGSizeMake(aOriginalRect.size.width, 99999999); + CGRect textRect = [aTextString boundingRectWithSize:size + options:NSStringDrawingUsesLineFragmentOrigin + attributes:@{NSFontAttributeName:aFont} + context:nil]; + aOriginalRect.size.height = textRect.size.height; + return aOriginalRect; +} + +/** GET DEVICE TYPE */ +- (CurrentDeviceType)deviceType { + if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { + switch ((int)[[UIScreen mainScreen] nativeBounds].size.height) { + case 480: + return DeviceTypeClassic; + break; + case 960: + return DeviceType4Or4s; + break; + case 1136: + return DeviceType5Or5sOr5cOrSE; + break; + case 1334: + return DeviceType6Or6sOr7Or8; + break; + case 2208: + return DeviceType6PlusOr6sPlus; + break; + case 2436: + return DeviceTypeX; + break; + default: + return DeviceTypeUnknown; + } + } + + return DeviceTypeUnknown; +} + +@end diff --git a/RSPickerViewDemo/ViewController.h b/RSPickerViewDemo/ViewController.h new file mode 100644 index 0000000..1cc3501 --- /dev/null +++ b/RSPickerViewDemo/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/RSPickerViewDemo/ViewController.m b/RSPickerViewDemo/ViewController.m new file mode 100644 index 0000000..37e529d --- /dev/null +++ b/RSPickerViewDemo/ViewController.m @@ -0,0 +1,106 @@ +// +// ViewController.m +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import "ViewController.h" +#import "CZPickerView.h" +#import "UsefulTool.h" + +@interface ViewController () { + NSInteger _selectedIndex; + NSArray *_titleList; + UILabel *_showSelectedTitleLabel; +} + +@end + +@implementation ViewController + +#pragma mark - Override + +- (void)viewDidLoad { + [super viewDidLoad]; + + _selectedIndex = 0; + + _titleList = @[@"This is the First row Of the Picker", + @"This is the Second row Of the Picker", + @"This is the Third row Of the Picker", + @"This is the Fourth row Of the Picker", + @"This is the Fifth row Of the Picker"]; + + [self.view setBackgroundColor:IsIPhoneX ? [UIColor blackColor] : [UIColor whiteColor]]; + + // showing picker button + CGRect rect = CGRectMake(0, 0, 120 * Scale, 50 * Scale); + rect.origin.x = (CGRectGetWidth(self.view.frame) - CGRectGetWidth(rect)) / 2; + rect.origin.y = (CGRectGetHeight(self.view.frame) - CGRectGetHeight(rect)) / 2; + + UIButton *button = [[UIButton alloc] initWithFrame:rect]; + [button setTitle:@"SHOW PICKER" forState:UIControlStateNormal]; + [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal]; + [button.titleLabel setFont:PICKER_TEXT_FONT]; + [button.layer setBorderColor:[UIColor orangeColor].CGColor]; + [button.layer setBorderWidth:2]; + [button addTarget:self action:@selector(onShowingPickerButton:) forControlEvents:UIControlEventTouchUpInside]; + [self.view addSubview:button]; + + // Show the Selected Title Text UILabel + rect = CGRectMake(BASE_BLANK_WIDTH, CGRectGetMaxY(button.frame) + BASE_BLANK_WIDTH, CGRectGetWidth(self.view.frame), 31 * Scale); + rect.size.width -= rect.origin.x * 2; + UILabel *label = [[UILabel alloc] initWithFrame:rect]; + [label setTextAlignment:NSTextAlignmentCenter]; + [label setTextColor:IsIPhoneX ? [UIColor whiteColor] : [UIColor blackColor]]; + [label setFont:PICKER_TEXT_FONT]; + [label setAdjustsFontSizeToFitWidth:YES]; + [label setMinimumScaleFactor:10 * Scale]; + [self.view addSubview:label]; + _showSelectedTitleLabel = label; + label = nil; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Events Functions + +- (void)onShowingPickerButton:(UIButton *)aButton { + CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"CHOOSE ONE ROW" cancelButtonTitle:@"CANCEL" confirmButtonTitle:@"CONFIRM"]; + [picker setDelegate:self]; + [picker setDataSource:self]; + [picker setNeedFooterView:YES]; + [picker setCheckmarkColor:[UIColor orangeColor]]; + [picker setSelectedRows:@[[NSNumber numberWithInteger:_selectedIndex]]]; + [picker show]; +} + +#pragma mark - CZPickerViewDataSource, CZPickerViewDelegate + +- (NSString *)czpickerView:(CZPickerView *)pickerView titleForRow:(NSInteger)row { + return [_titleList objectAtIndex:row]; +} + +- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView { + return _titleList.count; +} + +- (void)czpickerView:(CZPickerView *)pickerView didConfirmWithItemAtRow:(NSInteger)row { + _selectedIndex = row; + + [_showSelectedTitleLabel setText:[_titleList objectAtIndex:row]]; +} + +- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView { +} + +- (void)czpickerViewDidDismiss:(CZPickerView *)pickerView { +} + + +@end diff --git a/RSPickerViewDemo/main.m b/RSPickerViewDemo/main.m new file mode 100644 index 0000000..eac5bbc --- /dev/null +++ b/RSPickerViewDemo/main.m @@ -0,0 +1,16 @@ +// +// main.m +// RSPickerViewDemo +// +// Created by MB6 on 2018/7/25. +// Copyright © 2018年 Rebecca Huang. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj deleted file mode 120000 index 3c5a8e7..0000000 --- a/_Pods.xcodeproj +++ /dev/null @@ -1 +0,0 @@ -Example/Pods/Pods.xcodeproj \ No newline at end of file diff --git a/demo.gif b/demo.gif deleted file mode 100644 index 2a0daf4..0000000 Binary files a/demo.gif and /dev/null differ diff --git a/swift_demo/Podfile b/swift_demo/Podfile deleted file mode 100644 index 9d8b31d..0000000 --- a/swift_demo/Podfile +++ /dev/null @@ -1,9 +0,0 @@ -# Uncomment this line to define a global platform for your project -platform :ios, '8.0' -# Uncomment this line if you're using Swift -use_frameworks! - -target 'swift_demo' do - pod 'CZPicker' -end - diff --git a/swift_demo/Podfile.lock b/swift_demo/Podfile.lock deleted file mode 100644 index 02ffe76..0000000 --- a/swift_demo/Podfile.lock +++ /dev/null @@ -1,10 +0,0 @@ -PODS: - - CZPicker (0.4.2) - -DEPENDENCIES: - - CZPicker - -SPEC CHECKSUMS: - CZPicker: df3d8d0511595b7cd2f032263c82c611d45a9b8e - -COCOAPODS: 0.39.0 diff --git a/swift_demo/Pods/CZPicker/LICENSE b/swift_demo/Pods/CZPicker/LICENSE deleted file mode 100644 index edaee9b..0000000 --- a/swift_demo/Pods/CZPicker/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2015 chenzeyu -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/swift_demo/Pods/CZPicker/Pod/Classes/CZPicker.h b/swift_demo/Pods/CZPicker/Pod/Classes/CZPicker.h deleted file mode 100644 index e325d06..0000000 --- a/swift_demo/Pods/CZPicker/Pod/Classes/CZPicker.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// CZPicker.h -// Pods -// -// Created by chenzeyu on 21/7/15. -// -// - -#ifndef Pods_CZPicker_h -#define Pods_CZPicker_h -#import "CZPickerView.h" -#endif diff --git a/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.h b/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.h deleted file mode 100644 index c209703..0000000 --- a/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.h +++ /dev/null @@ -1,138 +0,0 @@ -// -// CZPickerView.h -// -// Created by chenzeyu on 9/6/15. -// Copyright (c) 2015 chenzeyu. All rights reserved. -// - -#import - -@class CZPickerView; - -@protocol CZPickerViewDataSource - -@required -/* number of items for picker */ -- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView; - -@optional -/* - Implement at least one of the following method, - CZPickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row has higer priority -*/ - -/* attributed picker item title for each row */ -- (NSAttributedString *)czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row; - -/* picker item title for each row */ -- (NSString *)czpickerView:(CZPickerView *)pickerView - titleForRow:(NSInteger)row; - -/* picker item image for each row */ -- (UIImage *)czpickerView:(CZPickerView *)pickerView imageForRow:(NSInteger)row; - -@end - -@protocol CZPickerViewDelegate - -@optional - -/** delegate method for picking one item */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemAtRow:(NSInteger)row; - -/* - delegate method for picking multiple items, - implement this method if allowMultipleSelection is YES, - rows is an array of NSNumbers - */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemsAtRows:(NSArray *)rows; - -/** delegate method for canceling */ -- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView; -@end - -@interface CZPickerView : UIView - -/** Initialize the picker view with titles - @param headerTitle The title of header - @param cancelButtonTitle The title for cancelButton - @param confirmButtonTitle The title for confirmButton - */ -- (id)initWithHeaderTitle:(NSString *)headerTitle - cancelButtonTitle:(NSString *)cancelButtonTitle - confirmButtonTitle:(NSString *)confirmButtonTitle; - -/** show the picker */ -- (void)show; -- (void)show:(id)container; - -/** reload the picker */ -- (void)reloadData; - -/** return previously selected row, in array of NSNumber form. */ -- (NSArray *)selectedRows; - -/** set pre-selected rows, rows should be array of NSNumber. */ -- (void)setSelectedRows: (NSArray *)rows; - -/** unselect all rows */ -- (void)unselectAll; - -@property id delegate; - -@property id dataSource; - -/** whether to show footer (including confirm and cancel buttons), default NO */ -@property BOOL needFooterView; - -/** whether allow tap background to dismiss the picker, default YES */ -@property BOOL tapBackgroundToDismiss; - -/** whether the picker is visible or not, default NO */ -@property BOOL pickerVisible; - -/** whether allow selection of multiple items/rows, default NO, if this - property is YES, then footerView will be shown */ -@property BOOL allowMultipleSelection; - -/** picker header background color */ -@property (nonatomic, strong) UIColor *headerBackgroundColor; - -/** picker header title font */ -@property (nonatomic, strong) UIFont *headerTitleFont; - -/** picker header title color */ -@property (nonatomic, strong) UIColor *headerTitleColor; - -/** picker cancel button background color */ -@property (nonatomic, strong) UIColor *cancelButtonBackgroundColor; - -/** picker cancel button normal state color */ -@property (nonatomic, strong) UIColor *cancelButtonNormalColor; - -/** picker cancel button highlighted state color */ -@property (nonatomic, strong) UIColor *cancelButtonHighlightedColor; - -/** picker confirm button background color */ -@property (nonatomic, strong) UIColor *confirmButtonBackgroundColor; - -/** picker confirm button normal state color */ -@property (nonatomic, strong) UIColor *confirmButtonNormalColor; - -/** picker confirm button highlighted state color */ -@property (nonatomic, strong) UIColor *confirmButtonHighlightedColor; - -/** tint color for tableview, also checkmark color */ -@property (nonatomic, strong) UIColor *checkmarkColor; - -/** picker's animation duration for showing and dismissing */ -@property CGFloat animationDuration; - -/** width of picker */ -@property CGFloat pickerWidth; - -@end diff --git a/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.m b/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.m deleted file mode 100644 index 0523fe2..0000000 --- a/swift_demo/Pods/CZPicker/Pod/Classes/CZPickerView.m +++ /dev/null @@ -1,448 +0,0 @@ -// -// CZPickerView.h -// -// Created by chenzeyu on 9/6/15. -// Copyright (c) 2015 chenzeyu. All rights reserved. -// - -#import "CZPickerView.h" - -#define CZP_FOOTER_HEIGHT 44.0 -#define CZP_HEADER_HEIGHT 44.0 -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 -#define CZP_BACKGROUND_ALPHA 0.9 -#else -#define CZP_BACKGROUND_ALPHA 0.3 -#endif - - - -typedef void (^CZDismissCompletionCallback)(void); - -@interface CZPickerView () -@property NSString *headerTitle; -@property NSString *cancelButtonTitle; -@property NSString *confirmButtonTitle; -@property UIView *backgroundDimmingView; -@property UIView *containerView; -@property UIView *headerView; -@property UIView *footerview; -@property UITableView *tableView; -@property NSMutableArray *selectedIndexPaths; -@property CGRect previousBounds; -@end - -@implementation CZPickerView - -- (id)initWithHeaderTitle:(NSString *)headerTitle - cancelButtonTitle:(NSString *)cancelButtonTitle - confirmButtonTitle:(NSString *)confirmButtonTitle{ - self = [super init]; - if(self){ - if([self needHandleOrientation]){ - [[NSNotificationCenter defaultCenter] addObserver: self - selector:@selector(deviceOrientationDidChange:) - name:UIDeviceOrientationDidChangeNotification - object: nil]; - } - self.tapBackgroundToDismiss = YES; - self.needFooterView = NO; - self.allowMultipleSelection = NO; - self.animationDuration = 0.5f; - - self.confirmButtonTitle = confirmButtonTitle; - self.cancelButtonTitle = cancelButtonTitle; - - self.headerTitle = headerTitle ? headerTitle : @""; - self.headerTitleColor = [UIColor whiteColor]; - self.headerBackgroundColor = [UIColor colorWithRed:56.0/255 green:185.0/255 blue:158.0/255 alpha:1]; - - self.cancelButtonNormalColor = [UIColor colorWithRed:59.0/255 green:72/255.0 blue:5.0/255 alpha:1]; - self.cancelButtonHighlightedColor = [UIColor grayColor]; - self.cancelButtonBackgroundColor = [UIColor colorWithRed:236.0/255 green:240/255.0 blue:241.0/255 alpha:1]; - - self.confirmButtonNormalColor = [UIColor whiteColor]; - self.confirmButtonHighlightedColor = [UIColor colorWithRed:236.0/255 green:240/255.0 blue:241.0/255 alpha:1]; - self.confirmButtonBackgroundColor = [UIColor colorWithRed:56.0/255 green:185.0/255 blue:158.0/255 alpha:1]; - - _previousBounds = [UIScreen mainScreen].bounds; - self.frame = _previousBounds; - } - return self; -} - -- (void)setupSubviews{ - if(!self.backgroundDimmingView){ - self.backgroundDimmingView = [self buildBackgroundDimmingView]; - [self addSubview:self.backgroundDimmingView]; - } - - self.containerView = [self buildContainerView]; - [self addSubview:self.containerView]; - - self.tableView = [self buildTableView]; - [self.containerView addSubview:self.tableView]; - - self.headerView = [self buildHeaderView]; - [self.containerView addSubview:self.headerView]; - - self.footerview = [self buildFooterView]; - [self.containerView addSubview:self.footerview]; - - CGRect frame = self.containerView.frame; - - self.containerView.frame = CGRectMake(frame.origin.x, - frame.origin.y, - frame.size.width, - self.headerView.frame.size.height + self.tableView.frame.size.height + self.footerview.frame.size.height); - self.containerView.center = CGPointMake(self.center.x, self.center.y + self.frame.size.height); - -} - -- (void)performContainerAnimation { - - [UIView animateWithDuration:self.animationDuration delay:0 usingSpringWithDamping:0.7f initialSpringVelocity:3.0f options:UIViewAnimationOptionAllowAnimatedContent animations:^{ - self.containerView.center = self.center; - } completion:^(BOOL finished) { - - }]; -} - -- (void)show { - - UIWindow *mainWindow = [[[UIApplication sharedApplication] delegate] window]; - self.frame = mainWindow.frame; - [self show:mainWindow]; -} - -- (void)show:(id)container { - - self.pickerVisible = YES; - if (self.allowMultipleSelection && !self.needFooterView) { - self.needFooterView = self.allowMultipleSelection; - } - - if ([container respondsToSelector:@selector(addSubview:)]) { - [container addSubview:self]; - - [self setupSubviews]; - [self performContainerAnimation]; - - [UIView animateWithDuration:0.3f animations:^{ - self.backgroundDimmingView.alpha = CZP_BACKGROUND_ALPHA; - }]; - } -} - -- (void)reloadData{ - - [self.tableView reloadData]; -} - -- (void)dismissPicker:(CZDismissCompletionCallback)completion{ - [UIView animateWithDuration:self.animationDuration delay:0 usingSpringWithDamping:0.7f initialSpringVelocity:3.0f options:UIViewAnimationOptionAllowAnimatedContent animations:^{ - self.containerView.center = CGPointMake(self.center.x, self.center.y + self.frame.size.height); - }completion:^(BOOL finished) { - }]; - - [UIView animateWithDuration:0.3f animations:^{ - self.backgroundDimmingView.alpha = 0.0; - } completion:^(BOOL finished) { - if(finished){ - if(completion){ - completion(); - } - self.pickerVisible = NO; - [self removeFromSuperview]; - } - }]; -} - -- (UIView *)buildContainerView{ - CGFloat widthRatio = _pickerWidth ? _pickerWidth / [UIScreen mainScreen].bounds.size.width : 0.8; - CGAffineTransform transform = CGAffineTransformMake(widthRatio, 0, 0, 0.8, 0, 0); - CGRect newRect = CGRectApplyAffineTransform(self.frame, transform); - UIView *cv = [[UIView alloc] initWithFrame:newRect]; - cv.layer.cornerRadius = 6.0f; - cv.clipsToBounds = YES; - cv.center = CGPointMake(self.center.x, self.center.y + self.frame.size.height); - return cv; -} - -- (UITableView *)buildTableView{ - CGFloat widthRatio = _pickerWidth ? _pickerWidth / [UIScreen mainScreen].bounds.size.width : 0.8; - CGAffineTransform transform = CGAffineTransformMake(widthRatio, 0, 0, 0.8, 0, 0); - CGRect newRect = CGRectApplyAffineTransform(self.frame, transform); - NSInteger n = [self.dataSource numberOfRowsInPickerView:self]; - CGRect tableRect; - float heightOffset = CZP_HEADER_HEIGHT + CZP_FOOTER_HEIGHT; - if(n > 0){ - float height = n * 44.0; - height = height > newRect.size.height - heightOffset ? newRect.size.height -heightOffset : height; - tableRect = CGRectMake(0, 44.0, newRect.size.width, height); - } else { - tableRect = CGRectMake(0, 44.0, newRect.size.width, newRect.size.height - heightOffset); - } - UITableView *tableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStylePlain]; - tableView.delegate = self; - tableView.dataSource = self; - tableView.separatorStyle = UITableViewCellSeparatorStyleNone; - return tableView; -} - -- (UIView *)buildBackgroundDimmingView{ - - UIView *bgView; - //blur effect for iOS8 - CGFloat frameHeight = self.frame.size.height; - CGFloat frameWidth = self.frame.size.width; - CGFloat sideLength = frameHeight > frameWidth ? frameHeight : frameWidth; - if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1) { - UIBlurEffect *eff = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; - bgView = [[UIVisualEffectView alloc] initWithEffect:eff]; - bgView.frame = CGRectMake(0, 0, sideLength, sideLength); - } - else { - bgView = [[UIView alloc] initWithFrame:self.frame]; - bgView.backgroundColor = [UIColor blackColor]; - } - bgView.alpha = 0.0; - if(self.tapBackgroundToDismiss){ - [bgView addGestureRecognizer: - [[UITapGestureRecognizer alloc] initWithTarget:self - action:@selector(cancelButtonPressed:)]]; - } - return bgView; -} - -- (UIView *)buildFooterView{ - if (!self.needFooterView){ - return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)]; - } - CGRect rect = self.tableView.frame; - CGRect newRect = CGRectMake(0, - rect.origin.y + rect.size.height, - rect.size.width, - CZP_FOOTER_HEIGHT); - CGRect leftRect = CGRectMake(0,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); - CGRect rightRect = CGRectMake(newRect.size.width /2,0, newRect.size.width /2, CZP_FOOTER_HEIGHT); - - UIView *view = [[UIView alloc] initWithFrame:newRect]; - UIButton *cancelButton = [[UIButton alloc] initWithFrame:leftRect]; - [cancelButton setTitle:self.cancelButtonTitle forState:UIControlStateNormal]; - [cancelButton setTitleColor: self.cancelButtonNormalColor forState:UIControlStateNormal]; - [cancelButton setTitleColor:self.cancelButtonHighlightedColor forState:UIControlStateHighlighted]; - cancelButton.titleLabel.font = [UIFont boldSystemFontOfSize:16]; - cancelButton.backgroundColor = self.cancelButtonBackgroundColor; - [cancelButton addTarget:self action:@selector(cancelButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; - [view addSubview:cancelButton]; - - UIButton *confirmButton = [[UIButton alloc] initWithFrame:rightRect]; - [confirmButton setTitle:self.confirmButtonTitle forState:UIControlStateNormal]; - [confirmButton setTitleColor:self.confirmButtonNormalColor forState:UIControlStateNormal]; - [confirmButton setTitleColor:self.confirmButtonHighlightedColor forState:UIControlStateHighlighted]; - confirmButton.titleLabel.font = [UIFont systemFontOfSize:16]; - confirmButton.backgroundColor = self.confirmButtonBackgroundColor; - [confirmButton addTarget:self action:@selector(confirmButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; - [view addSubview:confirmButton]; - return view; -} - -- (UIView *)buildHeaderView{ - UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, CZP_HEADER_HEIGHT)]; - view.backgroundColor = self.headerBackgroundColor; - - UIFont *headerFont = self.headerTitleFont == nil ? [UIFont systemFontOfSize:18.0] : self.headerTitleFont; - - NSDictionary *dict = @{ - NSForegroundColorAttributeName: self.headerTitleColor, - NSFontAttributeName:headerFont - }; - NSAttributedString *at = [[NSAttributedString alloc] initWithString:self.headerTitle attributes:dict]; - UILabel *label = [[UILabel alloc] initWithFrame:view.frame]; - label.attributedText = at; - [label sizeToFit]; - [view addSubview:label]; - label.center = view.center; - return view; -} - -- (IBAction)cancelButtonPressed:(id)sender{ - [self dismissPicker:^{ - if([self.delegate respondsToSelector:@selector(czpickerViewDidClickCancelButton:)]){ - [self.delegate czpickerViewDidClickCancelButton:self]; - } - }]; -} - -- (IBAction)confirmButtonPressed:(id)sender{ - [self dismissPicker:^{ - if(self.allowMultipleSelection && [self.delegate respondsToSelector:@selector(czpickerView:didConfirmWithItemsAtRows:)]){ - [self.delegate czpickerView:self didConfirmWithItemsAtRows:[self selectedRows]]; - } - - else if(!self.allowMultipleSelection && [self.delegate respondsToSelector:@selector(czpickerView:didConfirmWithItemAtRow:)]){ - if (self.selectedIndexPaths.count > 0){ - NSInteger row = ((NSIndexPath *)self.selectedIndexPaths[0]).row; - [self.delegate czpickerView:self didConfirmWithItemAtRow:row]; - } - } - }]; -} - -- (NSArray *)selectedRows { - NSMutableArray *rows = [NSMutableArray new]; - for (NSIndexPath *ip in self.selectedIndexPaths) { - [rows addObject:@(ip.row)]; - } - return rows; -} - -- (void)setSelectedRows:(NSArray *)rows{ - if (![rows isKindOfClass: NSArray.class]) { - return; - } - self.selectedIndexPaths = [NSMutableArray new]; - for (NSNumber *n in rows){ - NSIndexPath *ip = [NSIndexPath indexPathForRow:[n integerValue] inSection: 0]; - [self.selectedIndexPaths addObject:ip]; - } -} - -- (void)unselectAll { - self.selectedIndexPaths = [NSMutableArray new]; - [self.tableView reloadData]; -} - -#pragma mark - UITableViewDataSource -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ - if ([self.dataSource respondsToSelector:@selector(numberOfRowsInPickerView:)]) { - return [self.dataSource numberOfRowsInPickerView:self]; - } - return 1; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ - static NSString *cellIdentifier = @"czpicker_view_identifier"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; - if (!cell) { - cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: cellIdentifier]; - } - cell.accessoryType = UITableViewCellAccessoryNone; - for(NSIndexPath *ip in self.selectedIndexPaths){ - if(ip.row == indexPath.row){ - cell.accessoryType = UITableViewCellAccessoryCheckmark; - } - } - if([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ - cell.textLabel.text = [self.dataSource czpickerView:self titleForRow:indexPath.row]; - cell.imageView.image = [self.dataSource czpickerView:self imageForRow:indexPath.row]; - } else if ([self.dataSource respondsToSelector:@selector(czpickerView:attributedTitleForRow:)] && [self.dataSource respondsToSelector:@selector(czpickerView:imageForRow:)]){ - cell.textLabel.attributedText = [self.dataSource czpickerView:self attributedTitleForRow:indexPath.row]; - cell.imageView.image = [self.dataSource czpickerView:self imageForRow:indexPath.row]; - } else if ([self.dataSource respondsToSelector:@selector(czpickerView:attributedTitleForRow:)]) { - cell.textLabel.attributedText = [self.dataSource czpickerView:self attributedTitleForRow:indexPath.row]; - } else if([self.dataSource respondsToSelector:@selector(czpickerView:titleForRow:)]){ - cell.textLabel.text = [self.dataSource czpickerView:self titleForRow:indexPath.row]; - } - - if(self.checkmarkColor){ - cell.tintColor = self.checkmarkColor; - } - return cell; -} - -#pragma mark - UITableViewDelegate -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ - UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; - [tableView deselectRowAtIndexPath:indexPath animated:YES]; - if(!self.selectedIndexPaths){ - self.selectedIndexPaths = [NSMutableArray new]; - } - // the row has already been selected - - if (self.allowMultipleSelection){ - - if([self.selectedIndexPaths containsObject:indexPath]){ - [self.selectedIndexPaths removeObject:indexPath]; - cell.accessoryType = UITableViewCellAccessoryNone; - } else { - [self.selectedIndexPaths addObject:indexPath]; - cell.accessoryType = UITableViewCellAccessoryCheckmark; - } - - } else { //single selection mode - - if (self.selectedIndexPaths.count > 0){// has selection - NSIndexPath *prevIp = (NSIndexPath *)self.selectedIndexPaths[0]; - UITableViewCell *prevCell = [tableView cellForRowAtIndexPath:prevIp]; - if(indexPath.row != prevIp.row){ //different cell - prevCell.accessoryType = UITableViewCellAccessoryNone; - cell.accessoryType = UITableViewCellAccessoryCheckmark; - [self.selectedIndexPaths removeObject:prevIp]; - [self.selectedIndexPaths addObject:indexPath]; - } else {//same cell - cell.accessoryType = UITableViewCellAccessoryNone; - self.selectedIndexPaths = [NSMutableArray new]; - } - } else {//no selection - [self.selectedIndexPaths addObject:indexPath]; - cell.accessoryType = UITableViewCellAccessoryCheckmark; - } - - if(!self.needFooterView && [self.delegate respondsToSelector:@selector(czpickerView:didConfirmWithItemAtRow:)]){ - [self dismissPicker:^{ - [self.delegate czpickerView:self didConfirmWithItemAtRow:indexPath.row]; - }]; - } - } - -} - -#pragma mark - Notification Handler - -- (BOOL)needHandleOrientation{ - NSArray *supportedOrientations = [[[NSBundle mainBundle] infoDictionary] - objectForKey:@"UISupportedInterfaceOrientations"]; - NSMutableSet *set = [NSMutableSet set]; - for(NSString *o in supportedOrientations){ - NSRange range = [o rangeOfString:@"Portrait"]; - if (range.location != NSNotFound) { - [set addObject:@"Portrait"]; - } - - range = [o rangeOfString:@"Landscape"]; - if (range.location != NSNotFound) { - [set addObject:@"Landscape"]; - } - } - return set.count == 2; -} - -- (void)deviceOrientationDidChange:(NSNotification *)notification{ - CGRect rect = [UIScreen mainScreen].bounds; - if (CGRectEqualToRect(rect, _previousBounds)) { - return; - } - _previousBounds = rect; - self.frame = rect; - for(UIView *v in self.subviews){ - if([v isEqual:self.backgroundDimmingView]) continue; - - [UIView animateWithDuration:0.2f animations:^{ - v.alpha = 0.0; - } completion:^(BOOL finished) { - [v removeFromSuperview]; - //as backgroundDimmingView will not be removed - if(self.subviews.count == 1){ - [self setupSubviews]; - [self performContainerAnimation]; - } - }]; - } -} - -- (void)dealloc{ - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} -@end diff --git a/swift_demo/Pods/CZPicker/README.md b/swift_demo/Pods/CZPicker/README.md deleted file mode 100644 index df96f8e..0000000 --- a/swift_demo/Pods/CZPicker/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# CZPicker - -[![CI Status](http://img.shields.io/travis/chenzeyu/CZPicker.svg?style=flat)](https://travis-ci.org/chenzeyu/CZPicker) -[![Version](https://img.shields.io/cocoapods/v/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) -[![License](https://img.shields.io/cocoapods/l/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) -[![Platform](https://img.shields.io/cocoapods/p/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker) - -## Demo -![](demo.gif) - -## Change Log -3 most recent changes are listed here. - -Full [change logs](CHANGELOG.md) - -### v0.4.2 - 2016-04-12 -- Improve orientation handler to avoid unnecessary pop up animations. - -### v0.4.1 - 2016-04-10 -- Remove bundle resources setting in podspec file. - -### v0.4.0 - 2016-04-09 -- Added ```pickerWidth``` for setting picker width. - -## Usage - -CZPicker is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following line to your Podfile: - -```ruby -pod "CZPicker" -``` - -To run the example project, clone the repo, and run `pod install` from the Example directory first. - -If you are using swift, please refer to [CZPicker Swift Demo](https://gist.github.com/chenzeyu/6d19a343ffc8d6530fd0) - -To show the picker, simply adding the following code: - -```objective-c -CZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@"Fruits" - cancelButtonTitle:@"Cancel" - confirmButtonTitle:@"Confirm"]; -picker.delegate = self; -picker.dataSource = self; -[picker show]; -``` -and implement the dataSource and Delegate methods: - -```objective-c -#prama mark - CZPickerViewDataSource - -@required -/* number of items for picker */ -- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView; - -@optional -/* - Implement at least one of the following method, - czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row has higer priority -*/ - -/* attributed picker item title for each row */ -- (NSAttributedString *)czpickerView:(CZPickerView *)pickerView - attributedTitleForRow:(NSInteger)row; - -/* picker item title for each row */ -- (NSString *)czpickerView:(CZPickerView *)pickerView - titleForRow:(NSInteger)row; - - - -#prama mark - CZPickerViewDelegate -@optional -/** delegate method for picking one item */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemAtRow:(NSInteger)row; - -/** delegate method for picking multiple items, - implement this method if allowMultipleSelection is YES, - rows is an array of NSNumbers - */ -- (void)czpickerView:(CZPickerView *)pickerView - didConfirmWithItemsAtRows:(NSArray *)rows; -/** delegate method for canceling */ -- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView; -``` - -## Customization -There are a lot of things can be customized, change the following properties to customize the picker of your own: - -```objective-c -/** whether to show footer (including confirm and cancel buttons), default NO */ -@property BOOL needFooterView; - -/** whether allow tap background to dismiss the picker, default YES */ -@property BOOL tapBackgroundToDismiss; - -/** whether allow selection of multiple items/rows, default NO, if this - property is YES, then footerView will be shown */ -@property BOOL allowMultipleSelection; - -/** picker header background color */ -@property (nonatomic, strong) UIColor *headerBackgroundColor; - -/** picker header title color */ -@property (nonatomic, strong) UIColor *headerTitleColor; - -/** picker cancel button background color */ -@property (nonatomic, strong) UIColor *cancelButtonBackgroundColor; - -/** picker cancel button normal state color */ -@property (nonatomic, strong) UIColor *cancelButtonNormalColor; - -/** picker cancel button highlighted state color */ -@property (nonatomic, strong) UIColor *cancelButtonHighlightedColor; - -/** picker confirm button background color */ -@property (nonatomic, strong) UIColor *confirmButtonBackgroundColor; - -/** picker confirm button normal state color */ -@property (nonatomic, strong) UIColor *confirmButtonNormalColor; - -/** picker confirm button highlighted state color */ -@property (nonatomic, strong) UIColor *confirmButtonHighlightedColor; - -/** picker's animation duration for showing and dismissing*/ -@property CGFloat animationDuration; - -``` - - - -## Author - -chenzeyu, zeyufly@gmail.com - -## License - -CZPicker is available under the MIT license. See the LICENSE file for more info. - -## Credits - -CZPicker is created at and supported by [Fooyo.sg](http://fooyo.sg) diff --git a/swift_demo/Pods/Headers/Private/CZPicker/CZPicker.h b/swift_demo/Pods/Headers/Private/CZPicker/CZPicker.h deleted file mode 120000 index 1041c20..0000000 --- a/swift_demo/Pods/Headers/Private/CZPicker/CZPicker.h +++ /dev/null @@ -1 +0,0 @@ -../../../CZPicker/Pod/Classes/CZPicker.h \ No newline at end of file diff --git a/swift_demo/Pods/Headers/Private/CZPicker/CZPickerView.h b/swift_demo/Pods/Headers/Private/CZPicker/CZPickerView.h deleted file mode 120000 index 6718425..0000000 --- a/swift_demo/Pods/Headers/Private/CZPicker/CZPickerView.h +++ /dev/null @@ -1 +0,0 @@ -../../../CZPicker/Pod/Classes/CZPickerView.h \ No newline at end of file diff --git a/swift_demo/Pods/Manifest.lock b/swift_demo/Pods/Manifest.lock deleted file mode 100644 index 02ffe76..0000000 --- a/swift_demo/Pods/Manifest.lock +++ /dev/null @@ -1,10 +0,0 @@ -PODS: - - CZPicker (0.4.2) - -DEPENDENCIES: - - CZPicker - -SPEC CHECKSUMS: - CZPicker: df3d8d0511595b7cd2f032263c82c611d45a9b8e - -COCOAPODS: 0.39.0 diff --git a/swift_demo/Pods/Pods.xcodeproj/project.pbxproj b/swift_demo/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 1a21d3a..0000000 --- a/swift_demo/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1197 +0,0 @@ - - - - - archiveVersion - 1 - classes - - objectVersion - 46 - objects - - 00F08831B9F78406B83B2248D3EABBCF - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.xcconfig - path - Pods-swift_demo.release.xcconfig - sourceTree - <group> - - 06E8CC84621557C1D597E63E31A079CF - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.script.sh - path - Pods-swift_demo-frameworks.sh - sourceTree - <group> - - 0712B9EB373AFA93585755A840BD6131 - - buildActionMask - 2147483647 - files - - 947EBAC5BE5270A978BA3BE97FDE4DC5 - 8FCC15399D5093213762C29F50599D31 - - isa - PBXFrameworksBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 07934A91639D7D2EBFA0810EA03A8019 - - fileRef - 7541263FB6D09DAD458A932DA54A4EC8 - isa - PBXBuildFile - settings - - ATTRIBUTES - - Public - - - - 079AD21CBDC71AA1C686C0AA715D39BB - - buildActionMask - 2147483647 - files - - 98DA8A32A95D3F75C19D1972B9DFE991 - 10B0ED911FAB5B8DB1A5FCEE721F099C - - isa - PBXSourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 0CFE0D4C25554A8D82980F94588DABE0 - - explicitFileType - wrapper.framework - includeInIndex - 0 - isa - PBXFileReference - name - Pods_swift_demo.framework - path - Pods_swift_demo.framework - sourceTree - BUILT_PRODUCTS_DIR - - 0F77C5564C594D71BADA3F8115F3C7FD - - includeInIndex - 1 - isa - PBXFileReference - path - CZPicker.modulemap - sourceTree - <group> - - 10B0ED911FAB5B8DB1A5FCEE721F099C - - fileRef - 5BDD1103BD13E39E7455C70B9480BE34 - isa - PBXBuildFile - - 1231435E4BB1334F1ABC80BCD544DC9A - - baseConfigurationReference - 4C68F95A99ED2AB81938ABE1E9A4303A - buildSettings - - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - CURRENT_PROJECT_VERSION - 1 - DEFINES_MODULE - YES - DYLIB_COMPATIBILITY_VERSION - 1 - DYLIB_CURRENT_VERSION - 1 - DYLIB_INSTALL_NAME_BASE - @rpath - ENABLE_STRICT_OBJC_MSGSEND - YES - GCC_PREFIX_HEADER - Target Support Files/CZPicker/CZPicker-prefix.pch - INFOPLIST_FILE - Target Support Files/CZPicker/Info.plist - INSTALL_PATH - $(LOCAL_LIBRARY_DIR)/Frameworks - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - LD_RUNPATH_SEARCH_PATHS - - $(inherited) - @executable_path/Frameworks - @loader_path/Frameworks - - MODULEMAP_FILE - Target Support Files/CZPicker/CZPicker.modulemap - MTL_ENABLE_DEBUG_INFO - NO - PRODUCT_NAME - CZPicker - SDKROOT - iphoneos - SKIP_INSTALL - YES - TARGETED_DEVICE_FAMILY - 1,2 - VERSIONING_SYSTEM - apple-generic - VERSION_INFO_PREFIX - - - isa - XCBuildConfiguration - name - Release - - 12FAE413D50C5BA089C55F037C3868C7 - - children - - EAD16EA0882E588A087CBD7FFEAD5D97 - - isa - PBXGroup - name - Pods - sourceTree - <group> - - 18340F12838DEE43507667CC74401EB1 - - children - - 6E7E5AF37923BFA48D6994B9BFC6535F - C3B7BDF5CE5CB8F095FE12DA55D9A9BB - - isa - PBXGroup - name - iOS - sourceTree - <group> - - 18A6911C88FDB034C9A21B5291716F9D - - includeInIndex - 1 - isa - PBXFileReference - path - Pods-swift_demo.modulemap - sourceTree - <group> - - 243DC9A44D5B431B726FD2FAF6C06136 - - buildConfigurations - - 2B3A8CE5F94ECC5E946308A79759B19C - 1231435E4BB1334F1ABC80BCD544DC9A - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 24801FBCEE10CB1A33C9902D7EB8BB37 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - path - CZPicker-umbrella.h - sourceTree - <group> - - 2AD0546FE2B9F5B731A74FEEF3305137 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.plist.xml - path - Info.plist - sourceTree - <group> - - 2B3A8CE5F94ECC5E946308A79759B19C - - baseConfigurationReference - 4C68F95A99ED2AB81938ABE1E9A4303A - buildSettings - - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - CURRENT_PROJECT_VERSION - 1 - DEFINES_MODULE - YES - DYLIB_COMPATIBILITY_VERSION - 1 - DYLIB_CURRENT_VERSION - 1 - DYLIB_INSTALL_NAME_BASE - @rpath - ENABLE_STRICT_OBJC_MSGSEND - YES - GCC_PREFIX_HEADER - Target Support Files/CZPicker/CZPicker-prefix.pch - INFOPLIST_FILE - Target Support Files/CZPicker/Info.plist - INSTALL_PATH - $(LOCAL_LIBRARY_DIR)/Frameworks - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - LD_RUNPATH_SEARCH_PATHS - - $(inherited) - @executable_path/Frameworks - @loader_path/Frameworks - - MODULEMAP_FILE - Target Support Files/CZPicker/CZPicker.modulemap - MTL_ENABLE_DEBUG_INFO - YES - PRODUCT_NAME - CZPicker - SDKROOT - iphoneos - SKIP_INSTALL - YES - TARGETED_DEVICE_FAMILY - 1,2 - VERSIONING_SYSTEM - apple-generic - VERSION_INFO_PREFIX - - - isa - XCBuildConfiguration - name - Debug - - 2D8E8EC45A3A1A1D94AE762CB5028504 - - buildConfigurations - - A70CDAD61F90AC503C7D04CC22DA2923 - FB45FFD90572718D82AB9092B750F0CA - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 3BF848AA0FF308A0ECC9A57B9E671C81 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.plist.xml - path - Pods-swift_demo-acknowledgements.plist - sourceTree - <group> - - 3D63E0CC490457B081694CAA8A2CB637 - - buildConfigurations - - E70F1625E70E7B1126D7C8FBB325F82D - D6DB5FC6BA3B0736FF76C0D139A26F85 - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 433CD3331B6C3787F473C941B61FC68F - - children - - 18340F12838DEE43507667CC74401EB1 - - isa - PBXGroup - name - Frameworks - sourceTree - <group> - - 44F98EBB4D90D1F592F5AF39EE278F05 - - explicitFileType - wrapper.framework - includeInIndex - 0 - isa - PBXFileReference - name - CZPicker.framework - path - CZPicker.framework - sourceTree - BUILT_PRODUCTS_DIR - - 47A884FC3ABB2BC618C1485B17CA4480 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.script.sh - path - Pods-swift_demo-resources.sh - sourceTree - <group> - - 49477314444F9BDDD0D18E541CD01E0A - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - path - CZPicker-prefix.pch - sourceTree - <group> - - 4A118BB723ADF8E77418882455ED3817 - - buildActionMask - 2147483647 - files - - EC96CD6EBDD290AAD10020819B55602A - - isa - PBXFrameworksBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 4C68F95A99ED2AB81938ABE1E9A4303A - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.xcconfig - path - CZPicker.xcconfig - sourceTree - <group> - - 4E1B6C5683B224FA0E536FF99CBA89E5 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.xcconfig - path - Pods-swift_demo.debug.xcconfig - sourceTree - <group> - - 4F7C49AB91F3FC4D6531A0992362734E - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.objc - path - Pods-swift_demo-dummy.m - sourceTree - <group> - - 5175F644067F38615BF8C24EFDC4B156 - - buildConfigurationList - 243DC9A44D5B431B726FD2FAF6C06136 - buildPhases - - 079AD21CBDC71AA1C686C0AA715D39BB - 0712B9EB373AFA93585755A840BD6131 - A130E8399737123697DB21AB2EA2BB2B - - buildRules - - dependencies - - isa - PBXNativeTarget - name - CZPicker - productName - CZPicker - productReference - 44F98EBB4D90D1F592F5AF39EE278F05 - productType - com.apple.product-type.framework - - 5204B06C7731DEF25491D668CEABD17D - - fileRef - 4F7C49AB91F3FC4D6531A0992362734E - isa - PBXBuildFile - - 5BDD1103BD13E39E7455C70B9480BE34 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.objc - name - CZPickerView.m - path - Pod/Classes/CZPickerView.m - sourceTree - <group> - - 5DA35E944DCA0C288E55BC4782D5D3F3 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.plist.xml - path - Info.plist - sourceTree - <group> - - 6584CA194C0E1D555DFED61D7BA12D51 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.objc - path - CZPicker-dummy.m - sourceTree - <group> - - 6656B445655CE1AD81AE8BC8D5EAD9A1 - - buildActionMask - 2147483647 - files - - 5204B06C7731DEF25491D668CEABD17D - - isa - PBXSourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 6E7E5AF37923BFA48D6994B9BFC6535F - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - Foundation.framework - path - Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework - sourceTree - DEVELOPER_DIR - - 700393F8E5CB8B8CDE850E4ED39DEA30 - - children - - 9EA03B0301298468E573E107AAC71566 - - isa - PBXGroup - name - Targets Support Files - sourceTree - <group> - - 7182850E8AD912C0B9B7082091550673 - - buildConfigurationList - 3D63E0CC490457B081694CAA8A2CB637 - buildPhases - - 6656B445655CE1AD81AE8BC8D5EAD9A1 - 4A118BB723ADF8E77418882455ED3817 - 851AF1314224E05CFCE76655F07DC3AB - - buildRules - - dependencies - - D698EFB3DC54D6834F3B21CDC48666F4 - - isa - PBXNativeTarget - name - Pods-swift_demo - productName - Pods-swift_demo - productReference - 0CFE0D4C25554A8D82980F94588DABE0 - productType - com.apple.product-type.framework - - 7541263FB6D09DAD458A932DA54A4EC8 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - name - CZPickerView.h - path - Pod/Classes/CZPickerView.h - sourceTree - <group> - - 7C6D2FD95348BD6EDBBED729FD767C47 - - containerPortal - D41D8CD98F00B204E9800998ECF8427E - isa - PBXContainerItemProxy - proxyType - 1 - remoteGlobalIDString - 5175F644067F38615BF8C24EFDC4B156 - remoteInfo - CZPicker - - 7D56569A95141CA01B56D785B75464E0 - - fileRef - F90FB14B337E0E6E0D0E7D42734C29A4 - isa - PBXBuildFile - settings - - ATTRIBUTES - - Public - - - - 7DB346D0F39D3F0E887471402A8071AB - - children - - BA6428E9F66FD5A23C0A2E06ED26CD2F - 433CD3331B6C3787F473C941B61FC68F - 12FAE413D50C5BA089C55F037C3868C7 - D126454AE3C11DE7A19741643AFB5DA1 - 700393F8E5CB8B8CDE850E4ED39DEA30 - - isa - PBXGroup - sourceTree - <group> - - 851AF1314224E05CFCE76655F07DC3AB - - buildActionMask - 2147483647 - files - - 7D56569A95141CA01B56D785B75464E0 - - isa - PBXHeadersBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 8FCC15399D5093213762C29F50599D31 - - fileRef - C3B7BDF5CE5CB8F095FE12DA55D9A9BB - isa - PBXBuildFile - - 947EBAC5BE5270A978BA3BE97FDE4DC5 - - fileRef - 6E7E5AF37923BFA48D6994B9BFC6535F - isa - PBXBuildFile - - 98DA8A32A95D3F75C19D1972B9DFE991 - - fileRef - 6584CA194C0E1D555DFED61D7BA12D51 - isa - PBXBuildFile - - 9EA03B0301298468E573E107AAC71566 - - children - - 5DA35E944DCA0C288E55BC4782D5D3F3 - 18A6911C88FDB034C9A21B5291716F9D - E2D4DE41FDCC153FB05906CC5FE50756 - 3BF848AA0FF308A0ECC9A57B9E671C81 - 4F7C49AB91F3FC4D6531A0992362734E - 06E8CC84621557C1D597E63E31A079CF - 47A884FC3ABB2BC618C1485B17CA4480 - F90FB14B337E0E6E0D0E7D42734C29A4 - 4E1B6C5683B224FA0E536FF99CBA89E5 - 00F08831B9F78406B83B2248D3EABBCF - - isa - PBXGroup - name - Pods-swift_demo - path - Target Support Files/Pods-swift_demo - sourceTree - <group> - - 9F3C65B83217A80EE4CFB3B3031A52A4 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - name - CZPicker.h - path - Pod/Classes/CZPicker.h - sourceTree - <group> - - A130E8399737123697DB21AB2EA2BB2B - - buildActionMask - 2147483647 - files - - F273E1C5862475F9C273944EFE5EBB6B - A8CD94F8698B145A16233DDB70B418C1 - 07934A91639D7D2EBFA0810EA03A8019 - - isa - PBXHeadersBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - A70CDAD61F90AC503C7D04CC22DA2923 - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - CLANG_CXX_LANGUAGE_STANDARD - gnu++0x - CLANG_CXX_LIBRARY - libc++ - CLANG_ENABLE_MODULES - YES - CLANG_ENABLE_OBJC_ARC - YES - CLANG_WARN_BOOL_CONVERSION - YES - CLANG_WARN_CONSTANT_CONVERSION - YES - CLANG_WARN_DIRECT_OBJC_ISA_USAGE - YES - CLANG_WARN_EMPTY_BODY - YES - CLANG_WARN_ENUM_CONVERSION - YES - CLANG_WARN_INT_CONVERSION - YES - CLANG_WARN_OBJC_ROOT_CLASS - YES - CLANG_WARN_UNREACHABLE_CODE - YES - CLANG_WARN__DUPLICATE_METHOD_MATCH - YES - COPY_PHASE_STRIP - NO - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_DYNAMIC_NO_PIC - NO - GCC_OPTIMIZATION_LEVEL - 0 - GCC_PREPROCESSOR_DEFINITIONS - - DEBUG=1 - $(inherited) - - GCC_SYMBOLS_PRIVATE_EXTERN - NO - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES - GCC_WARN_UNDECLARED_SELECTOR - YES - GCC_WARN_UNINITIALIZED_AUTOS - YES - GCC_WARN_UNUSED_FUNCTION - YES - GCC_WARN_UNUSED_VARIABLE - YES - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - ONLY_ACTIVE_ARCH - YES - STRIP_INSTALLED_PRODUCT - NO - SYMROOT - ${SRCROOT}/../build - - isa - XCBuildConfiguration - name - Debug - - A8CD94F8698B145A16233DDB70B418C1 - - fileRef - 9F3C65B83217A80EE4CFB3B3031A52A4 - isa - PBXBuildFile - settings - - ATTRIBUTES - - Public - - - - A978184390D2B09F3AEDB724C9BC84F0 - - children - - 0F77C5564C594D71BADA3F8115F3C7FD - 4C68F95A99ED2AB81938ABE1E9A4303A - 6584CA194C0E1D555DFED61D7BA12D51 - 49477314444F9BDDD0D18E541CD01E0A - 24801FBCEE10CB1A33C9902D7EB8BB37 - 2AD0546FE2B9F5B731A74FEEF3305137 - - isa - PBXGroup - name - Support Files - path - ../Target Support Files/CZPicker - sourceTree - <group> - - BA6428E9F66FD5A23C0A2E06ED26CD2F - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text - name - Podfile - path - ../Podfile - sourceTree - SOURCE_ROOT - xcLanguageSpecificationIdentifier - xcode.lang.ruby - - C3B7BDF5CE5CB8F095FE12DA55D9A9BB - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - UIKit.framework - path - Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework - sourceTree - DEVELOPER_DIR - - D126454AE3C11DE7A19741643AFB5DA1 - - children - - 44F98EBB4D90D1F592F5AF39EE278F05 - 0CFE0D4C25554A8D82980F94588DABE0 - - isa - PBXGroup - name - Products - sourceTree - <group> - - D41D8CD98F00B204E9800998ECF8427E - - attributes - - LastSwiftUpdateCheck - 0700 - LastUpgradeCheck - 0700 - - buildConfigurationList - 2D8E8EC45A3A1A1D94AE762CB5028504 - compatibilityVersion - Xcode 3.2 - developmentRegion - English - hasScannedForEncodings - 0 - isa - PBXProject - knownRegions - - en - - mainGroup - 7DB346D0F39D3F0E887471402A8071AB - productRefGroup - D126454AE3C11DE7A19741643AFB5DA1 - projectDirPath - - projectReferences - - projectRoot - - targets - - 5175F644067F38615BF8C24EFDC4B156 - 7182850E8AD912C0B9B7082091550673 - - - D698EFB3DC54D6834F3B21CDC48666F4 - - isa - PBXTargetDependency - name - CZPicker - target - 5175F644067F38615BF8C24EFDC4B156 - targetProxy - 7C6D2FD95348BD6EDBBED729FD767C47 - - D6DB5FC6BA3B0736FF76C0D139A26F85 - - baseConfigurationReference - 00F08831B9F78406B83B2248D3EABBCF - buildSettings - - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - CURRENT_PROJECT_VERSION - 1 - DEFINES_MODULE - YES - DYLIB_COMPATIBILITY_VERSION - 1 - DYLIB_CURRENT_VERSION - 1 - DYLIB_INSTALL_NAME_BASE - @rpath - ENABLE_STRICT_OBJC_MSGSEND - YES - INFOPLIST_FILE - Target Support Files/Pods-swift_demo/Info.plist - INSTALL_PATH - $(LOCAL_LIBRARY_DIR)/Frameworks - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - LD_RUNPATH_SEARCH_PATHS - - $(inherited) - @executable_path/Frameworks - @loader_path/Frameworks - - MACH_O_TYPE - staticlib - MODULEMAP_FILE - Target Support Files/Pods-swift_demo/Pods-swift_demo.modulemap - MTL_ENABLE_DEBUG_INFO - NO - OTHER_LDFLAGS - - OTHER_LIBTOOLFLAGS - - PODS_ROOT - $(SRCROOT) - PRODUCT_NAME - Pods_swift_demo - SDKROOT - iphoneos - SKIP_INSTALL - YES - TARGETED_DEVICE_FAMILY - 1,2 - VERSIONING_SYSTEM - apple-generic - VERSION_INFO_PREFIX - - - isa - XCBuildConfiguration - name - Release - - E2D4DE41FDCC153FB05906CC5FE50756 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text - path - Pods-swift_demo-acknowledgements.markdown - sourceTree - <group> - - E70F1625E70E7B1126D7C8FBB325F82D - - baseConfigurationReference - 4E1B6C5683B224FA0E536FF99CBA89E5 - buildSettings - - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - CURRENT_PROJECT_VERSION - 1 - DEFINES_MODULE - YES - DYLIB_COMPATIBILITY_VERSION - 1 - DYLIB_CURRENT_VERSION - 1 - DYLIB_INSTALL_NAME_BASE - @rpath - ENABLE_STRICT_OBJC_MSGSEND - YES - INFOPLIST_FILE - Target Support Files/Pods-swift_demo/Info.plist - INSTALL_PATH - $(LOCAL_LIBRARY_DIR)/Frameworks - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - LD_RUNPATH_SEARCH_PATHS - - $(inherited) - @executable_path/Frameworks - @loader_path/Frameworks - - MACH_O_TYPE - staticlib - MODULEMAP_FILE - Target Support Files/Pods-swift_demo/Pods-swift_demo.modulemap - MTL_ENABLE_DEBUG_INFO - YES - OTHER_LDFLAGS - - OTHER_LIBTOOLFLAGS - - PODS_ROOT - $(SRCROOT) - PRODUCT_NAME - Pods_swift_demo - SDKROOT - iphoneos - SKIP_INSTALL - YES - TARGETED_DEVICE_FAMILY - 1,2 - VERSIONING_SYSTEM - apple-generic - VERSION_INFO_PREFIX - - - isa - XCBuildConfiguration - name - Debug - - EAD16EA0882E588A087CBD7FFEAD5D97 - - children - - 9F3C65B83217A80EE4CFB3B3031A52A4 - 7541263FB6D09DAD458A932DA54A4EC8 - 5BDD1103BD13E39E7455C70B9480BE34 - A978184390D2B09F3AEDB724C9BC84F0 - - isa - PBXGroup - name - CZPicker - path - CZPicker - sourceTree - <group> - - EC96CD6EBDD290AAD10020819B55602A - - fileRef - 6E7E5AF37923BFA48D6994B9BFC6535F - isa - PBXBuildFile - - F273E1C5862475F9C273944EFE5EBB6B - - fileRef - 24801FBCEE10CB1A33C9902D7EB8BB37 - isa - PBXBuildFile - settings - - ATTRIBUTES - - Public - - - - F90FB14B337E0E6E0D0E7D42734C29A4 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - path - Pods-swift_demo-umbrella.h - sourceTree - <group> - - FB45FFD90572718D82AB9092B750F0CA - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - CLANG_CXX_LANGUAGE_STANDARD - gnu++0x - CLANG_CXX_LIBRARY - libc++ - CLANG_ENABLE_MODULES - YES - CLANG_ENABLE_OBJC_ARC - YES - CLANG_WARN_BOOL_CONVERSION - YES - CLANG_WARN_CONSTANT_CONVERSION - YES - CLANG_WARN_DIRECT_OBJC_ISA_USAGE - YES - CLANG_WARN_EMPTY_BODY - YES - CLANG_WARN_ENUM_CONVERSION - YES - CLANG_WARN_INT_CONVERSION - YES - CLANG_WARN_OBJC_ROOT_CLASS - YES - CLANG_WARN_UNREACHABLE_CODE - YES - CLANG_WARN__DUPLICATE_METHOD_MATCH - YES - COPY_PHASE_STRIP - YES - ENABLE_NS_ASSERTIONS - NO - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_PREPROCESSOR_DEFINITIONS - - RELEASE=1 - - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES - GCC_WARN_UNDECLARED_SELECTOR - YES - GCC_WARN_UNINITIALIZED_AUTOS - YES - GCC_WARN_UNUSED_FUNCTION - YES - GCC_WARN_UNUSED_VARIABLE - YES - IPHONEOS_DEPLOYMENT_TARGET - 8.0 - STRIP_INSTALLED_PRODUCT - NO - SYMROOT - ${SRCROOT}/../build - VALIDATE_PRODUCT - YES - - isa - XCBuildConfiguration - name - Release - - - rootObject - D41D8CD98F00B204E9800998ECF8427E - - diff --git a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-dummy.m b/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-dummy.m deleted file mode 100644 index f623545..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_CZPicker : NSObject -@end -@implementation PodsDummy_CZPicker -@end diff --git a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch b/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch deleted file mode 100644 index aa992a4..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-prefix.pch +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef __OBJC__ -#import -#endif - diff --git a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-umbrella.h b/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-umbrella.h deleted file mode 100644 index ca7debd..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker-umbrella.h +++ /dev/null @@ -1,8 +0,0 @@ -#import - -#import "CZPicker.h" -#import "CZPickerView.h" - -FOUNDATION_EXPORT double CZPickerVersionNumber; -FOUNDATION_EXPORT const unsigned char CZPickerVersionString[]; - diff --git a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.modulemap b/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.modulemap deleted file mode 100644 index becb961..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module CZPicker { - umbrella header "CZPicker-umbrella.h" - - export * - module * { export * } -} diff --git a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.xcconfig b/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.xcconfig deleted file mode 100644 index fb9cead..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/CZPicker.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CZPicker" "${PODS_ROOT}/Headers/Public" -OTHER_LDFLAGS = -framework "UIKit" -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/swift_demo/Pods/Target Support Files/CZPicker/Info.plist b/swift_demo/Pods/Target Support Files/CZPicker/Info.plist deleted file mode 100644 index b607405..0000000 --- a/swift_demo/Pods/Target Support Files/CZPicker/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.4.2 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Info.plist b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Info.plist deleted file mode 100644 index 6974542..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.markdown b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.markdown deleted file mode 100644 index 2cfa804..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.markdown +++ /dev/null @@ -1,27 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## CZPicker - -Copyright (c) 2015 chenzeyu -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Generated by CocoaPods - http://cocoapods.org diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.plist b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.plist deleted file mode 100644 index a760560..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-acknowledgements.plist +++ /dev/null @@ -1,57 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2015 chenzeyu <zeyufly@gmail.com> -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - Title - CZPicker - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - http://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-dummy.m b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-dummy.m deleted file mode 100644 index 7b66874..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_swift_demo : NSObject -@end -@implementation PodsDummy_Pods_swift_demo -@end diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-frameworks.sh b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-frameworks.sh deleted file mode 100755 index 4c88ff7..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-frameworks.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current file - archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" - stripped="" - for arch in $archs; do - if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi -} - - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework "Pods-swift_demo/CZPicker.framework" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework "Pods-swift_demo/CZPicker.framework" -fi diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-resources.sh b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-resources.sh deleted file mode 100755 index 16774fb..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-resources.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY="$(cd "${1%/*}" && pwd)" - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-umbrella.h b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-umbrella.h deleted file mode 100644 index 95f1f2e..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import - - -FOUNDATION_EXPORT double Pods_swift_demoVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_swift_demoVersionString[]; - diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.debug.xcconfig b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.debug.xcconfig deleted file mode 100644 index a7a7764..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.debug.xcconfig +++ /dev/null @@ -1,6 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/CZPicker.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "CZPicker" -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-swift_demo -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.modulemap b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.modulemap deleted file mode 100644 index fd1c184..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_swift_demo { - umbrella header "Pods-swift_demo-umbrella.h" - - export * - module * { export * } -} diff --git a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.release.xcconfig b/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.release.xcconfig deleted file mode 100644 index a7a7764..0000000 --- a/swift_demo/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.release.xcconfig +++ /dev/null @@ -1,6 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/CZPicker.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "CZPicker" -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-swift_demo -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/swift_demo/swift_demo.xcodeproj/project.pbxproj b/swift_demo/swift_demo.xcodeproj/project.pbxproj deleted file mode 100644 index 3a5eca3..0000000 --- a/swift_demo/swift_demo.xcodeproj/project.pbxproj +++ /dev/null @@ -1,713 +0,0 @@ - - - - - archiveVersion - 1 - classes - - objectVersion - 46 - objects - - 26BD6630253F12F672346362 - - children - - A94582E12B7576D32A312B96 - - isa - PBXGroup - name - Frameworks - sourceTree - <group> - - 38A2A1D722F5914D845732BD - - buildActionMask - 2147483647 - files - - inputPaths - - isa - PBXShellScriptBuildPhase - name - Copy Pods Resources - outputPaths - - runOnlyForDeploymentPostprocessing - 0 - shellPath - /bin/sh - shellScript - "${SRCROOT}/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-resources.sh" - - showEnvVarsInLog - 0 - - 6211F417FC9943D261B46189 - - fileRef - A94582E12B7576D32A312B96 - isa - PBXBuildFile - - 69C0EA264ABA1343433C97E6 - - children - - 9DFA5634CFC3B1EAF1650368 - F8CCC79339B0FA33ED7499E8 - - isa - PBXGroup - name - Pods - sourceTree - <group> - - 97876C811CC1145000C8B6E2 - - children - - 97876C8C1CC1145000C8B6E2 - 97876C8B1CC1145000C8B6E2 - 69C0EA264ABA1343433C97E6 - 26BD6630253F12F672346362 - - isa - PBXGroup - sourceTree - <group> - - 97876C821CC1145000C8B6E2 - - attributes - - LastSwiftUpdateCheck - 0730 - LastUpgradeCheck - 0730 - ORGANIZATIONNAME - chenzeyu - TargetAttributes - - 97876C891CC1145000C8B6E2 - - CreatedOnToolsVersion - 7.3 - - - - buildConfigurationList - 97876C851CC1145000C8B6E2 - compatibilityVersion - Xcode 3.2 - developmentRegion - English - hasScannedForEncodings - 0 - isa - PBXProject - knownRegions - - en - Base - - mainGroup - 97876C811CC1145000C8B6E2 - productRefGroup - 97876C8B1CC1145000C8B6E2 - projectDirPath - - projectReferences - - projectRoot - - targets - - 97876C891CC1145000C8B6E2 - - - 97876C851CC1145000C8B6E2 - - buildConfigurations - - 97876C9A1CC1145000C8B6E2 - 97876C9B1CC1145000C8B6E2 - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 97876C861CC1145000C8B6E2 - - buildActionMask - 2147483647 - files - - 97876C901CC1145000C8B6E2 - 97876C8E1CC1145000C8B6E2 - - isa - PBXSourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 97876C871CC1145000C8B6E2 - - buildActionMask - 2147483647 - files - - 6211F417FC9943D261B46189 - - isa - PBXFrameworksBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 97876C881CC1145000C8B6E2 - - buildActionMask - 2147483647 - files - - 97876C981CC1145000C8B6E2 - 97876C951CC1145000C8B6E2 - 97876C931CC1145000C8B6E2 - - isa - PBXResourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 97876C891CC1145000C8B6E2 - - buildConfigurationList - 97876C9C1CC1145000C8B6E2 - buildPhases - - 9AA18FDAB99F399B43AC9E00 - 97876C861CC1145000C8B6E2 - 97876C871CC1145000C8B6E2 - 97876C881CC1145000C8B6E2 - EAAA7BADA9D917E951AA4F49 - 38A2A1D722F5914D845732BD - - buildRules - - dependencies - - isa - PBXNativeTarget - name - swift_demo - productName - swift_demo - productReference - 97876C8A1CC1145000C8B6E2 - productType - com.apple.product-type.application - - 97876C8A1CC1145000C8B6E2 - - explicitFileType - wrapper.application - includeInIndex - 0 - isa - PBXFileReference - path - swift_demo.app - sourceTree - BUILT_PRODUCTS_DIR - - 97876C8B1CC1145000C8B6E2 - - children - - 97876C8A1CC1145000C8B6E2 - - isa - PBXGroup - name - Products - sourceTree - <group> - - 97876C8C1CC1145000C8B6E2 - - children - - 97876C8D1CC1145000C8B6E2 - 97876C8F1CC1145000C8B6E2 - 97876C911CC1145000C8B6E2 - 97876C941CC1145000C8B6E2 - 97876C961CC1145000C8B6E2 - 97876C991CC1145000C8B6E2 - - isa - PBXGroup - path - swift_demo - sourceTree - <group> - - 97876C8D1CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - sourcecode.swift - path - AppDelegate.swift - sourceTree - <group> - - 97876C8E1CC1145000C8B6E2 - - fileRef - 97876C8D1CC1145000C8B6E2 - isa - PBXBuildFile - - 97876C8F1CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - sourcecode.swift - path - ViewController.swift - sourceTree - <group> - - 97876C901CC1145000C8B6E2 - - fileRef - 97876C8F1CC1145000C8B6E2 - isa - PBXBuildFile - - 97876C911CC1145000C8B6E2 - - children - - 97876C921CC1145000C8B6E2 - - isa - PBXVariantGroup - name - Main.storyboard - sourceTree - <group> - - 97876C921CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - file.storyboard - name - Base - path - Base.lproj/Main.storyboard - sourceTree - <group> - - 97876C931CC1145000C8B6E2 - - fileRef - 97876C911CC1145000C8B6E2 - isa - PBXBuildFile - - 97876C941CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - folder.assetcatalog - path - Assets.xcassets - sourceTree - <group> - - 97876C951CC1145000C8B6E2 - - fileRef - 97876C941CC1145000C8B6E2 - isa - PBXBuildFile - - 97876C961CC1145000C8B6E2 - - children - - 97876C971CC1145000C8B6E2 - - isa - PBXVariantGroup - name - LaunchScreen.storyboard - sourceTree - <group> - - 97876C971CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - file.storyboard - name - Base - path - Base.lproj/LaunchScreen.storyboard - sourceTree - <group> - - 97876C981CC1145000C8B6E2 - - fileRef - 97876C961CC1145000C8B6E2 - isa - PBXBuildFile - - 97876C991CC1145000C8B6E2 - - isa - PBXFileReference - lastKnownFileType - text.plist.xml - path - Info.plist - sourceTree - <group> - - 97876C9A1CC1145000C8B6E2 - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - CLANG_ANALYZER_NONNULL - YES - CLANG_CXX_LANGUAGE_STANDARD - gnu++0x - CLANG_CXX_LIBRARY - libc++ - CLANG_ENABLE_MODULES - YES - CLANG_ENABLE_OBJC_ARC - YES - CLANG_WARN_BOOL_CONVERSION - YES - CLANG_WARN_CONSTANT_CONVERSION - YES - CLANG_WARN_DIRECT_OBJC_ISA_USAGE - YES_ERROR - CLANG_WARN_EMPTY_BODY - YES - CLANG_WARN_ENUM_CONVERSION - YES - CLANG_WARN_INT_CONVERSION - YES - CLANG_WARN_OBJC_ROOT_CLASS - YES_ERROR - CLANG_WARN_UNREACHABLE_CODE - YES - CLANG_WARN__DUPLICATE_METHOD_MATCH - YES - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - COPY_PHASE_STRIP - NO - DEBUG_INFORMATION_FORMAT - dwarf - ENABLE_STRICT_OBJC_MSGSEND - YES - ENABLE_TESTABILITY - YES - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_DYNAMIC_NO_PIC - NO - GCC_NO_COMMON_BLOCKS - YES - GCC_OPTIMIZATION_LEVEL - 0 - GCC_PREPROCESSOR_DEFINITIONS - - DEBUG=1 - $(inherited) - - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES_ERROR - GCC_WARN_UNDECLARED_SELECTOR - YES - GCC_WARN_UNINITIALIZED_AUTOS - YES_AGGRESSIVE - GCC_WARN_UNUSED_FUNCTION - YES - GCC_WARN_UNUSED_VARIABLE - YES - IPHONEOS_DEPLOYMENT_TARGET - 9.3 - MTL_ENABLE_DEBUG_INFO - YES - ONLY_ACTIVE_ARCH - YES - SDKROOT - iphoneos - SWIFT_OPTIMIZATION_LEVEL - -Onone - TARGETED_DEVICE_FAMILY - 1,2 - - isa - XCBuildConfiguration - name - Debug - - 97876C9B1CC1145000C8B6E2 - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - CLANG_ANALYZER_NONNULL - YES - CLANG_CXX_LANGUAGE_STANDARD - gnu++0x - CLANG_CXX_LIBRARY - libc++ - CLANG_ENABLE_MODULES - YES - CLANG_ENABLE_OBJC_ARC - YES - CLANG_WARN_BOOL_CONVERSION - YES - CLANG_WARN_CONSTANT_CONVERSION - YES - CLANG_WARN_DIRECT_OBJC_ISA_USAGE - YES_ERROR - CLANG_WARN_EMPTY_BODY - YES - CLANG_WARN_ENUM_CONVERSION - YES - CLANG_WARN_INT_CONVERSION - YES - CLANG_WARN_OBJC_ROOT_CLASS - YES_ERROR - CLANG_WARN_UNREACHABLE_CODE - YES - CLANG_WARN__DUPLICATE_METHOD_MATCH - YES - CODE_SIGN_IDENTITY[sdk=iphoneos*] - iPhone Developer - COPY_PHASE_STRIP - NO - DEBUG_INFORMATION_FORMAT - dwarf-with-dsym - ENABLE_NS_ASSERTIONS - NO - ENABLE_STRICT_OBJC_MSGSEND - YES - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_NO_COMMON_BLOCKS - YES - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES_ERROR - GCC_WARN_UNDECLARED_SELECTOR - YES - GCC_WARN_UNINITIALIZED_AUTOS - YES_AGGRESSIVE - GCC_WARN_UNUSED_FUNCTION - YES - GCC_WARN_UNUSED_VARIABLE - YES - IPHONEOS_DEPLOYMENT_TARGET - 9.3 - MTL_ENABLE_DEBUG_INFO - NO - SDKROOT - iphoneos - TARGETED_DEVICE_FAMILY - 1,2 - VALIDATE_PRODUCT - YES - - isa - XCBuildConfiguration - name - Release - - 97876C9C1CC1145000C8B6E2 - - buildConfigurations - - 97876C9D1CC1145000C8B6E2 - 97876C9E1CC1145000C8B6E2 - - defaultConfigurationIsVisible - 0 - isa - XCConfigurationList - - 97876C9D1CC1145000C8B6E2 - - baseConfigurationReference - 9DFA5634CFC3B1EAF1650368 - buildSettings - - ASSETCATALOG_COMPILER_APPICON_NAME - AppIcon - INFOPLIST_FILE - swift_demo/Info.plist - LD_RUNPATH_SEARCH_PATHS - $(inherited) @executable_path/Frameworks - PRODUCT_BUNDLE_IDENTIFIER - org.cocoapods.demo.CZPicker-Example-swift.swift-demo - PRODUCT_NAME - $(TARGET_NAME) - - isa - XCBuildConfiguration - name - Debug - - 97876C9E1CC1145000C8B6E2 - - baseConfigurationReference - F8CCC79339B0FA33ED7499E8 - buildSettings - - ASSETCATALOG_COMPILER_APPICON_NAME - AppIcon - INFOPLIST_FILE - swift_demo/Info.plist - LD_RUNPATH_SEARCH_PATHS - $(inherited) @executable_path/Frameworks - PRODUCT_BUNDLE_IDENTIFIER - org.cocoapods.demo.CZPicker-Example-swift.swift-demo - PRODUCT_NAME - $(TARGET_NAME) - - isa - XCBuildConfiguration - name - Release - - 9AA18FDAB99F399B43AC9E00 - - buildActionMask - 2147483647 - files - - inputPaths - - isa - PBXShellScriptBuildPhase - name - Check Pods Manifest.lock - outputPaths - - runOnlyForDeploymentPostprocessing - 0 - shellPath - /bin/sh - shellScript - diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null -if [[ $? != 0 ]] ; then - cat << EOM -error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. -EOM - exit 1 -fi - - showEnvVarsInLog - 0 - - 9DFA5634CFC3B1EAF1650368 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.xcconfig - name - Pods-swift_demo.debug.xcconfig - path - Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.debug.xcconfig - sourceTree - <group> - - A94582E12B7576D32A312B96 - - explicitFileType - wrapper.framework - includeInIndex - 0 - isa - PBXFileReference - path - Pods_swift_demo.framework - sourceTree - BUILT_PRODUCTS_DIR - - EAAA7BADA9D917E951AA4F49 - - buildActionMask - 2147483647 - files - - inputPaths - - isa - PBXShellScriptBuildPhase - name - Embed Pods Frameworks - outputPaths - - runOnlyForDeploymentPostprocessing - 0 - shellPath - /bin/sh - shellScript - "${SRCROOT}/Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo-frameworks.sh" - - showEnvVarsInLog - 0 - - F8CCC79339B0FA33ED7499E8 - - includeInIndex - 1 - isa - PBXFileReference - lastKnownFileType - text.xcconfig - name - Pods-swift_demo.release.xcconfig - path - Pods/Target Support Files/Pods-swift_demo/Pods-swift_demo.release.xcconfig - sourceTree - <group> - - - rootObject - 97876C821CC1145000C8B6E2 - - diff --git a/swift_demo/swift_demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/swift_demo/swift_demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 3c89103..0000000 --- a/swift_demo/swift_demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/swift_demo/swift_demo.xcworkspace/contents.xcworkspacedata b/swift_demo/swift_demo.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 8dcf50e..0000000 --- a/swift_demo/swift_demo.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/swift_demo/swift_demo/AppDelegate.swift b/swift_demo/swift_demo/AppDelegate.swift deleted file mode 100644 index 5a51b47..0000000 --- a/swift_demo/swift_demo/AppDelegate.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// swift_demo -// -// Created by chenzeyu on 15/4/16. -// Copyright © 2016 chenzeyu. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(application: UIApplication) { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } - - -} - diff --git a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-1.jpg b/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-1.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-1.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-2.jpg b/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-2.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple-2.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple.jpg b/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple.jpg deleted file mode 100644 index 34b37f8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Apple.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Contents.json deleted file mode 100644 index cfd6681..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Apple.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Apple.jpg", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Apple-1.jpg", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Apple-2.jpg", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-1.png b/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-1.png deleted file mode 100644 index 295187b..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-1.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-2.png b/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-2.png deleted file mode 100644 index 295187b..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana-2.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana.png b/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana.png deleted file mode 100644 index 295187b..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Banana.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Contents.json deleted file mode 100644 index bc47dbb..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Banana.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Banana.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Banana-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Banana-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Contents.json deleted file mode 100644 index 2ab719d..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Grape.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Grape-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Grape-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-1.png b/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-1.png deleted file mode 100644 index 1412c18..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-1.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-2.png b/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-2.png deleted file mode 100644 index 1412c18..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape-2.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape.png b/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape.png deleted file mode 100644 index 1412c18..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Grape.imageset/Grape.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/LaunchImage.launchimage/Contents.json b/swift_demo/swift_demo/Assets.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index 6da7c45..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "images" : [ - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "subtype" : "retina4", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Contents.json deleted file mode 100644 index 4f63c77..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Lychee.jpg", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Lychee-1.jpg", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Lychee-2.jpg", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-1.jpg b/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-1.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-1.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-2.jpg b/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-2.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee-2.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee.jpg b/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee.jpg deleted file mode 100644 index be9daf8..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Lychee.imageset/Lychee.jpg and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Contents.json b/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Contents.json deleted file mode 100644 index a9bc970..0000000 --- a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "Watermelon.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "Watermelon-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "Watermelon-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-1.png b/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-1.png deleted file mode 100644 index ac330ae..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-1.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-2.png b/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-2.png deleted file mode 100644 index ac330ae..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon-2.png and /dev/null differ diff --git a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon.png b/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon.png deleted file mode 100644 index ac330ae..0000000 Binary files a/swift_demo/swift_demo/Assets.xcassets/Watermelon.imageset/Watermelon.png and /dev/null differ diff --git a/swift_demo/swift_demo/Base.lproj/LaunchScreen.storyboard b/swift_demo/swift_demo/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index ebf48f6..0000000 --- a/swift_demo/swift_demo/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/swift_demo/swift_demo/Base.lproj/Main.storyboard b/swift_demo/swift_demo/Base.lproj/Main.storyboard deleted file mode 100644 index ea0804c..0000000 --- a/swift_demo/swift_demo/Base.lproj/Main.storyboard +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/swift_demo/swift_demo/ViewController.swift b/swift_demo/swift_demo/ViewController.swift deleted file mode 100644 index 4a80185..0000000 --- a/swift_demo/swift_demo/ViewController.swift +++ /dev/null @@ -1,106 +0,0 @@ -// -// ViewController.swift -// swift_demo -// -// Created by chenzeyu on 15/4/16. -// Copyright © 2016 chenzeyu. All rights reserved. -// - -import UIKit -import CZPicker - -class ViewController: UIViewController { - - var fruits = [String]() - var fruitImages = [UIImage]() - var pickerWithImage: CZPickerView? - - override func viewDidLoad() { - super.viewDidLoad() - fruits = ["Apple", "Banana", "Grape", "Watermelon", "Lychee"] - fruitImages = [UIImage(named: "Apple")!, UIImage(named: "Banana")!, UIImage(named: "Grape")!, UIImage(named: "Watermelon")!, UIImage(named: "Lychee")!] - self.title = "CZPicker" - // Do any additional setup after loading the view, typically from a nib. - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - - @IBAction func showWithFooter(sender: AnyObject) { - let picker = CZPickerView(headerTitle: "Fruits", cancelButtonTitle: "Cancel", confirmButtonTitle: "Confirm") - picker.delegate = self - picker.dataSource = self - picker.needFooterView = true - picker.show() - } - - @IBAction func showWithoutFooter(sender: AnyObject) { - let picker = CZPickerView(headerTitle: "Fruits", cancelButtonTitle: "Cancel", confirmButtonTitle: "Confirm") - picker.delegate = self - picker.dataSource = self - picker.needFooterView = false - picker.show() - } - - @IBAction func showWithMultipleSelections(sender: AnyObject) { - let picker = CZPickerView(headerTitle: "Fruits", cancelButtonTitle: "Cancel", confirmButtonTitle: "Confirm") - picker.delegate = self - picker.dataSource = self - picker.needFooterView = false - picker.allowMultipleSelection = true - picker.show() - } - - @IBAction func showWithImages(sender: AnyObject) { - pickerWithImage = CZPickerView(headerTitle: "Fruits", cancelButtonTitle: "Cancel", confirmButtonTitle: "Confirm") - pickerWithImage?.delegate = self - pickerWithImage?.dataSource = self - pickerWithImage?.needFooterView = false - pickerWithImage?.show() - } - - @IBAction func showInsideContainer(snder: AnyObject) { - self.navigationController?.setNavigationBarHidden(false, animated: true) - let picker = CZPickerView(headerTitle: "Fruits", cancelButtonTitle: "Cancel", confirmButtonTitle: "Confirm") - picker.delegate = self - picker.dataSource = self - picker.show(self.view) - } -} - -extension ViewController: CZPickerViewDelegate, CZPickerViewDataSource { - func czpickerView(pickerView: CZPickerView!, imageForRow row: Int) -> UIImage! { - if pickerView == pickerWithImage { - return fruitImages[row] - } - return nil - } - - func numberOfRowsInPickerView(pickerView: CZPickerView!) -> Int { - return fruits.count - } - - func czpickerView(pickerView: CZPickerView!, titleForRow row: Int) -> String! { - return fruits[row] - } - - func czpickerView(pickerView: CZPickerView!, didConfirmWithItemAtRow row: Int){ - print(fruits[row]) - self.navigationController?.setNavigationBarHidden(true, animated: true) - } - - func czpickerViewDidClickCancelButton(pickerView: CZPickerView!) { - self.navigationController?.setNavigationBarHidden(true, animated: true) - } - - func czpickerView(pickerView: CZPickerView!, didConfirmWithItemsAtRows rows: [AnyObject]!) { - for row in rows { - if let row = row as? Int { - print(fruits[row]) - } - } - } -} -