├── ScreenShot1.png
├── BDImagePicker
├── BDImagePicker.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
└── BDImagePicker
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── AppDelegate.m
│ ├── ViewController.m
│ ├── BDImagePicker
│ ├── BDImagePicker.h
│ └── BDImagePicker.m
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Info.plist
│ └── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── README.md
├── LICENSE
└── .gitignore
/ScreenShot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayden320/BDImagePicker/HEAD/ScreenShot1.png
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // BDImagePicker
4 | //
5 | // Created by Suteki on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // BDImagePicker
4 | //
5 | // Created by Suteki on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // BDImagePicker
4 | //
5 | // Created by Suteki on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // BDImagePicker
4 | //
5 | // Created by Suteki on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | return YES;
20 | }
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // BDImagePicker
4 | //
5 | // Created by Suteki on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "BDImagePicker.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (IBAction)toggleAvatar:(UIButton *)sender {
19 | [BDImagePicker showImagePickerFromViewController:self allowsEditing:YES finishAction:^(UIImage *image) {
20 | if (image) {
21 | [sender setBackgroundImage:image forState:UIControlStateNormal];
22 | }
23 | }];
24 | }
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/BDImagePicker/BDImagePicker.h:
--------------------------------------------------------------------------------
1 | //
2 | // ImagePicker.h
3 | // BDKit
4 | //
5 | // Created by Liu Jinyong on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | typedef void (^BDImagePickerFinishAction)(UIImage *image);
12 |
13 | @interface BDImagePicker : NSObject
14 |
15 | /**
16 | @param viewController 用于present UIImagePickerController对象
17 | @param allowsEditing 是否允许用户编辑图像
18 | */
19 | + (void)showImagePickerFromViewController:(UIViewController *)viewController
20 | allowsEditing:(BOOL)allowsEditing
21 | finishAction:(BDImagePickerFinishAction)finishAction;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # BDImagePicker
2 | 一行代码 增加图片选择功能
3 |
4 |
5 |
6 |
7 | ## How To Get Started
8 |
9 | You can use this class through one line code.
10 |
11 | ```` objective-c
12 | [BDImagePicker showImagePickerFromViewController:self allowsEditing:YES finishAction:^(UIImage *image) {
13 | if (image) {
14 | [sender setBackgroundImage:image forState:UIControlStateNormal];
15 | }
16 | }];
17 | ````
18 |
19 | ## Communication
20 |
21 | If you found a bug, and can provide steps to reliably reproduce it, open an issue.
22 | If you have a feature request, open an issue.
23 | If you want to contribute, submit a pull request
24 |
25 | ## License
26 |
27 | BDImagePicker is released under the MIT license. See LICENSE for details.
28 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Jarron Liu
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | # Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker/BDImagePicker/BDImagePicker.m:
--------------------------------------------------------------------------------
1 | //
2 | // ImagePicker.m
3 | // BDKit
4 | //
5 | // Created by Liu Jinyong on 16/1/20.
6 | // Copyright © 2016年 Baidu. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "BDImagePicker.h"
11 |
12 | @interface BDImagePicker()
13 |
14 | @property (nonatomic, weak) UIViewController *viewController;
15 | @property (nonatomic, copy) BDImagePickerFinishAction finishAction;
16 | @property (nonatomic, assign) BOOL allowsEditing;
17 |
18 | @end
19 |
20 |
21 | static BDImagePicker *bdImagePickerInstance = nil;
22 |
23 | @implementation BDImagePicker
24 |
25 | + (void)showImagePickerFromViewController:(UIViewController *)viewController allowsEditing:(BOOL)allowsEditing finishAction:(BDImagePickerFinishAction)finishAction {
26 | if (bdImagePickerInstance == nil) {
27 | bdImagePickerInstance = [[BDImagePicker alloc] init];
28 | }
29 |
30 | [bdImagePickerInstance showImagePickerFromViewController:viewController
31 | allowsEditing:allowsEditing
32 | finishAction:finishAction];
33 | }
34 |
35 | - (void)showImagePickerFromViewController:(UIViewController *)viewController
36 | allowsEditing:(BOOL)allowsEditing
37 | finishAction:(BDImagePickerFinishAction)finishAction {
38 | _viewController = viewController;
39 | _finishAction = finishAction;
40 | _allowsEditing = allowsEditing;
41 |
42 | UIActionSheet *sheet = nil;
43 |
44 | if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
45 | sheet = [[UIActionSheet alloc] initWithTitle:nil
46 | delegate:self
47 | cancelButtonTitle:@"取消"
48 | destructiveButtonTitle:nil
49 | otherButtonTitles:@"拍照", @"从相册选择", nil];
50 | }else {
51 | sheet = [[UIActionSheet alloc] initWithTitle:nil
52 | delegate:self
53 | cancelButtonTitle:@"取消"
54 | destructiveButtonTitle:nil
55 | otherButtonTitles:@"从相册选择", nil];
56 | }
57 |
58 | UIView *window = [UIApplication sharedApplication].keyWindow;
59 | [sheet showInView:window];
60 | }
61 |
62 | - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
63 | NSString *title = [actionSheet buttonTitleAtIndex:buttonIndex];
64 | if ([title isEqualToString:@"拍照"]) {
65 | UIImagePickerController *picker = [[UIImagePickerController alloc] init];
66 | picker.delegate = self;
67 | picker.sourceType = UIImagePickerControllerSourceTypeCamera;
68 | picker.allowsEditing = _allowsEditing;
69 | [_viewController presentViewController:picker animated:YES completion:nil];
70 |
71 | }else if ([title isEqualToString:@"从相册选择"]) {
72 | UIImagePickerController *picker = [[UIImagePickerController alloc] init];
73 | picker.delegate = self;
74 | picker.allowsEditing = _allowsEditing;
75 | [_viewController presentViewController:picker animated:YES completion:nil];
76 | }else {
77 | bdImagePickerInstance = nil;
78 | }
79 | }
80 |
81 | - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
82 | UIImage *image = info[UIImagePickerControllerEditedImage];
83 | if (image == nil) {
84 | image = info[UIImagePickerControllerOriginalImage];
85 | }
86 |
87 | if (_finishAction) {
88 | _finishAction(image);
89 | }
90 |
91 | [picker dismissViewControllerAnimated:YES completion:^{}];
92 |
93 | bdImagePickerInstance = nil;
94 | }
95 |
96 | - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
97 | if (_finishAction) {
98 | _finishAction(nil);
99 | }
100 |
101 | [picker dismissViewControllerAnimated:YES completion:^{}];
102 |
103 | bdImagePickerInstance = nil;
104 | }
105 |
106 | @end
107 |
--------------------------------------------------------------------------------
/BDImagePicker/BDImagePicker.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 6E7D7A681C4F2A78000F671E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E7D7A671C4F2A78000F671E /* main.m */; };
11 | 6E7D7A6B1C4F2A78000F671E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E7D7A6A1C4F2A78000F671E /* AppDelegate.m */; };
12 | 6E7D7A6E1C4F2A78000F671E /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E7D7A6D1C4F2A78000F671E /* ViewController.m */; };
13 | 6E7D7A711C4F2A78000F671E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E7D7A6F1C4F2A78000F671E /* Main.storyboard */; };
14 | 6E7D7A731C4F2A78000F671E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6E7D7A721C4F2A78000F671E /* Assets.xcassets */; };
15 | 6E7D7A761C4F2A78000F671E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E7D7A741C4F2A78000F671E /* LaunchScreen.storyboard */; };
16 | 6E7D7A801C4F2A91000F671E /* BDImagePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E7D7A7F1C4F2A91000F671E /* BDImagePicker.m */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 6E7D7A631C4F2A78000F671E /* BDImagePicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BDImagePicker.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 6E7D7A671C4F2A78000F671E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
22 | 6E7D7A691C4F2A78000F671E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
23 | 6E7D7A6A1C4F2A78000F671E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
24 | 6E7D7A6C1C4F2A78000F671E /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
25 | 6E7D7A6D1C4F2A78000F671E /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
26 | 6E7D7A701C4F2A78000F671E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
27 | 6E7D7A721C4F2A78000F671E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | 6E7D7A751C4F2A78000F671E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | 6E7D7A771C4F2A78000F671E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 6E7D7A7E1C4F2A91000F671E /* BDImagePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BDImagePicker.h; sourceTree = ""; };
31 | 6E7D7A7F1C4F2A91000F671E /* BDImagePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BDImagePicker.m; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | 6E7D7A601C4F2A78000F671E /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | 6E7D7A5A1C4F2A78000F671E = {
46 | isa = PBXGroup;
47 | children = (
48 | 6E7D7A651C4F2A78000F671E /* BDImagePicker */,
49 | 6E7D7A641C4F2A78000F671E /* Products */,
50 | );
51 | sourceTree = "";
52 | };
53 | 6E7D7A641C4F2A78000F671E /* Products */ = {
54 | isa = PBXGroup;
55 | children = (
56 | 6E7D7A631C4F2A78000F671E /* BDImagePicker.app */,
57 | );
58 | name = Products;
59 | sourceTree = "";
60 | };
61 | 6E7D7A651C4F2A78000F671E /* BDImagePicker */ = {
62 | isa = PBXGroup;
63 | children = (
64 | 6E7D7A7D1C4F2A91000F671E /* BDImagePicker */,
65 | 6E7D7A691C4F2A78000F671E /* AppDelegate.h */,
66 | 6E7D7A6A1C4F2A78000F671E /* AppDelegate.m */,
67 | 6E7D7A6C1C4F2A78000F671E /* ViewController.h */,
68 | 6E7D7A6D1C4F2A78000F671E /* ViewController.m */,
69 | 6E7D7A6F1C4F2A78000F671E /* Main.storyboard */,
70 | 6E7D7A721C4F2A78000F671E /* Assets.xcassets */,
71 | 6E7D7A741C4F2A78000F671E /* LaunchScreen.storyboard */,
72 | 6E7D7A771C4F2A78000F671E /* Info.plist */,
73 | 6E7D7A661C4F2A78000F671E /* Supporting Files */,
74 | );
75 | path = BDImagePicker;
76 | sourceTree = "";
77 | };
78 | 6E7D7A661C4F2A78000F671E /* Supporting Files */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 6E7D7A671C4F2A78000F671E /* main.m */,
82 | );
83 | name = "Supporting Files";
84 | sourceTree = "";
85 | };
86 | 6E7D7A7D1C4F2A91000F671E /* BDImagePicker */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 6E7D7A7E1C4F2A91000F671E /* BDImagePicker.h */,
90 | 6E7D7A7F1C4F2A91000F671E /* BDImagePicker.m */,
91 | );
92 | path = BDImagePicker;
93 | sourceTree = "";
94 | };
95 | /* End PBXGroup section */
96 |
97 | /* Begin PBXNativeTarget section */
98 | 6E7D7A621C4F2A78000F671E /* BDImagePicker */ = {
99 | isa = PBXNativeTarget;
100 | buildConfigurationList = 6E7D7A7A1C4F2A78000F671E /* Build configuration list for PBXNativeTarget "BDImagePicker" */;
101 | buildPhases = (
102 | 6E7D7A5F1C4F2A78000F671E /* Sources */,
103 | 6E7D7A601C4F2A78000F671E /* Frameworks */,
104 | 6E7D7A611C4F2A78000F671E /* Resources */,
105 | );
106 | buildRules = (
107 | );
108 | dependencies = (
109 | );
110 | name = BDImagePicker;
111 | productName = BDImagePicker;
112 | productReference = 6E7D7A631C4F2A78000F671E /* BDImagePicker.app */;
113 | productType = "com.apple.product-type.application";
114 | };
115 | /* End PBXNativeTarget section */
116 |
117 | /* Begin PBXProject section */
118 | 6E7D7A5B1C4F2A78000F671E /* Project object */ = {
119 | isa = PBXProject;
120 | attributes = {
121 | LastUpgradeCheck = 0720;
122 | ORGANIZATIONNAME = Baidu;
123 | TargetAttributes = {
124 | 6E7D7A621C4F2A78000F671E = {
125 | CreatedOnToolsVersion = 7.2;
126 | };
127 | };
128 | };
129 | buildConfigurationList = 6E7D7A5E1C4F2A78000F671E /* Build configuration list for PBXProject "BDImagePicker" */;
130 | compatibilityVersion = "Xcode 3.2";
131 | developmentRegion = English;
132 | hasScannedForEncodings = 0;
133 | knownRegions = (
134 | en,
135 | Base,
136 | );
137 | mainGroup = 6E7D7A5A1C4F2A78000F671E;
138 | productRefGroup = 6E7D7A641C4F2A78000F671E /* Products */;
139 | projectDirPath = "";
140 | projectRoot = "";
141 | targets = (
142 | 6E7D7A621C4F2A78000F671E /* BDImagePicker */,
143 | );
144 | };
145 | /* End PBXProject section */
146 |
147 | /* Begin PBXResourcesBuildPhase section */
148 | 6E7D7A611C4F2A78000F671E /* Resources */ = {
149 | isa = PBXResourcesBuildPhase;
150 | buildActionMask = 2147483647;
151 | files = (
152 | 6E7D7A761C4F2A78000F671E /* LaunchScreen.storyboard in Resources */,
153 | 6E7D7A731C4F2A78000F671E /* Assets.xcassets in Resources */,
154 | 6E7D7A711C4F2A78000F671E /* Main.storyboard in Resources */,
155 | );
156 | runOnlyForDeploymentPostprocessing = 0;
157 | };
158 | /* End PBXResourcesBuildPhase section */
159 |
160 | /* Begin PBXSourcesBuildPhase section */
161 | 6E7D7A5F1C4F2A78000F671E /* Sources */ = {
162 | isa = PBXSourcesBuildPhase;
163 | buildActionMask = 2147483647;
164 | files = (
165 | 6E7D7A6E1C4F2A78000F671E /* ViewController.m in Sources */,
166 | 6E7D7A801C4F2A91000F671E /* BDImagePicker.m in Sources */,
167 | 6E7D7A6B1C4F2A78000F671E /* AppDelegate.m in Sources */,
168 | 6E7D7A681C4F2A78000F671E /* main.m in Sources */,
169 | );
170 | runOnlyForDeploymentPostprocessing = 0;
171 | };
172 | /* End PBXSourcesBuildPhase section */
173 |
174 | /* Begin PBXVariantGroup section */
175 | 6E7D7A6F1C4F2A78000F671E /* Main.storyboard */ = {
176 | isa = PBXVariantGroup;
177 | children = (
178 | 6E7D7A701C4F2A78000F671E /* Base */,
179 | );
180 | name = Main.storyboard;
181 | sourceTree = "";
182 | };
183 | 6E7D7A741C4F2A78000F671E /* LaunchScreen.storyboard */ = {
184 | isa = PBXVariantGroup;
185 | children = (
186 | 6E7D7A751C4F2A78000F671E /* Base */,
187 | );
188 | name = LaunchScreen.storyboard;
189 | sourceTree = "";
190 | };
191 | /* End PBXVariantGroup section */
192 |
193 | /* Begin XCBuildConfiguration section */
194 | 6E7D7A781C4F2A78000F671E /* Debug */ = {
195 | isa = XCBuildConfiguration;
196 | buildSettings = {
197 | ALWAYS_SEARCH_USER_PATHS = NO;
198 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
199 | CLANG_CXX_LIBRARY = "libc++";
200 | CLANG_ENABLE_MODULES = YES;
201 | CLANG_ENABLE_OBJC_ARC = YES;
202 | CLANG_WARN_BOOL_CONVERSION = YES;
203 | CLANG_WARN_CONSTANT_CONVERSION = YES;
204 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
205 | CLANG_WARN_EMPTY_BODY = YES;
206 | CLANG_WARN_ENUM_CONVERSION = YES;
207 | CLANG_WARN_INT_CONVERSION = YES;
208 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
209 | CLANG_WARN_UNREACHABLE_CODE = YES;
210 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
211 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
212 | COPY_PHASE_STRIP = NO;
213 | DEBUG_INFORMATION_FORMAT = dwarf;
214 | ENABLE_STRICT_OBJC_MSGSEND = YES;
215 | ENABLE_TESTABILITY = YES;
216 | GCC_C_LANGUAGE_STANDARD = gnu99;
217 | GCC_DYNAMIC_NO_PIC = NO;
218 | GCC_NO_COMMON_BLOCKS = YES;
219 | GCC_OPTIMIZATION_LEVEL = 0;
220 | GCC_PREPROCESSOR_DEFINITIONS = (
221 | "DEBUG=1",
222 | "$(inherited)",
223 | );
224 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
225 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
226 | GCC_WARN_UNDECLARED_SELECTOR = YES;
227 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
228 | GCC_WARN_UNUSED_FUNCTION = YES;
229 | GCC_WARN_UNUSED_VARIABLE = YES;
230 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
231 | MTL_ENABLE_DEBUG_INFO = YES;
232 | ONLY_ACTIVE_ARCH = YES;
233 | SDKROOT = iphoneos;
234 | };
235 | name = Debug;
236 | };
237 | 6E7D7A791C4F2A78000F671E /* Release */ = {
238 | isa = XCBuildConfiguration;
239 | buildSettings = {
240 | ALWAYS_SEARCH_USER_PATHS = NO;
241 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
242 | CLANG_CXX_LIBRARY = "libc++";
243 | CLANG_ENABLE_MODULES = YES;
244 | CLANG_ENABLE_OBJC_ARC = YES;
245 | CLANG_WARN_BOOL_CONVERSION = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
248 | CLANG_WARN_EMPTY_BODY = YES;
249 | CLANG_WARN_ENUM_CONVERSION = YES;
250 | CLANG_WARN_INT_CONVERSION = YES;
251 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
252 | CLANG_WARN_UNREACHABLE_CODE = YES;
253 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
254 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
255 | COPY_PHASE_STRIP = NO;
256 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
257 | ENABLE_NS_ASSERTIONS = NO;
258 | ENABLE_STRICT_OBJC_MSGSEND = YES;
259 | GCC_C_LANGUAGE_STANDARD = gnu99;
260 | GCC_NO_COMMON_BLOCKS = YES;
261 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
262 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
263 | GCC_WARN_UNDECLARED_SELECTOR = YES;
264 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
265 | GCC_WARN_UNUSED_FUNCTION = YES;
266 | GCC_WARN_UNUSED_VARIABLE = YES;
267 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
268 | MTL_ENABLE_DEBUG_INFO = NO;
269 | SDKROOT = iphoneos;
270 | VALIDATE_PRODUCT = YES;
271 | };
272 | name = Release;
273 | };
274 | 6E7D7A7B1C4F2A78000F671E /* Debug */ = {
275 | isa = XCBuildConfiguration;
276 | buildSettings = {
277 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
278 | INFOPLIST_FILE = BDImagePicker/Info.plist;
279 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
280 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
281 | PRODUCT_BUNDLE_IDENTIFIER = com.91.BDImagePicker;
282 | PRODUCT_NAME = "$(TARGET_NAME)";
283 | };
284 | name = Debug;
285 | };
286 | 6E7D7A7C1C4F2A78000F671E /* Release */ = {
287 | isa = XCBuildConfiguration;
288 | buildSettings = {
289 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
290 | INFOPLIST_FILE = BDImagePicker/Info.plist;
291 | IPHONEOS_DEPLOYMENT_TARGET = 6.0;
292 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
293 | PRODUCT_BUNDLE_IDENTIFIER = com.91.BDImagePicker;
294 | PRODUCT_NAME = "$(TARGET_NAME)";
295 | };
296 | name = Release;
297 | };
298 | /* End XCBuildConfiguration section */
299 |
300 | /* Begin XCConfigurationList section */
301 | 6E7D7A5E1C4F2A78000F671E /* Build configuration list for PBXProject "BDImagePicker" */ = {
302 | isa = XCConfigurationList;
303 | buildConfigurations = (
304 | 6E7D7A781C4F2A78000F671E /* Debug */,
305 | 6E7D7A791C4F2A78000F671E /* Release */,
306 | );
307 | defaultConfigurationIsVisible = 0;
308 | defaultConfigurationName = Release;
309 | };
310 | 6E7D7A7A1C4F2A78000F671E /* Build configuration list for PBXNativeTarget "BDImagePicker" */ = {
311 | isa = XCConfigurationList;
312 | buildConfigurations = (
313 | 6E7D7A7B1C4F2A78000F671E /* Debug */,
314 | 6E7D7A7C1C4F2A78000F671E /* Release */,
315 | );
316 | defaultConfigurationIsVisible = 0;
317 | };
318 | /* End XCConfigurationList section */
319 | };
320 | rootObject = 6E7D7A5B1C4F2A78000F671E /* Project object */;
321 | }
322 |
--------------------------------------------------------------------------------