├── ImagePickerDemo ├── images.jpeg ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── Info.plist ├── AppDelegate.swift ├── ViewController.swift └── Base.lproj │ └── Main.storyboard ├── ImagePickerDemo.xcodeproj ├── xcuserdata │ ├── theappguruz-new-6.xcuserdatad │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── ImagePickerDemo.xcscheme │ └── theappguruz-ios.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── ImagePickerDemo.xcscheme ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── theappguruz-ios.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── theappguruz-new-6.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── project.pbxproj ├── ImagePickerDemoTests ├── Info.plist └── ImagePickerDemoTests.swift └── README.md /ImagePickerDemo/images.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tejas123/User-Interaction-with-Camera-using-UIImagePickerController-in-Swift-/HEAD/ImagePickerDemo/images.jpeg -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/xcuserdata/theappguruz-new-6.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/project.xcworkspace/xcuserdata/theappguruz-ios.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tejas123/User-Interaction-with-Camera-using-UIImagePickerController-in-Swift-/HEAD/ImagePickerDemo.xcodeproj/project.xcworkspace/xcuserdata/theappguruz-ios.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/project.xcworkspace/xcuserdata/theappguruz-new-6.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tejas123/User-Interaction-with-Camera-using-UIImagePickerController-in-Swift-/HEAD/ImagePickerDemo.xcodeproj/project.xcworkspace/xcuserdata/theappguruz-new-6.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/xcuserdata/theappguruz-ios.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ImagePickerDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | EA6CC3A919935BA000834E65 16 | 17 | primary 18 | 19 | 20 | EA6CC3BB19935BA000834E65 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/xcuserdata/theappguruz-new-6.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ImagePickerDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | EA6CC3A919935BA000834E65 16 | 17 | primary 18 | 19 | 20 | EA6CC3BB19935BA000834E65 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ImagePickerDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.tag.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ImagePickerDemo/Images.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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /ImagePickerDemoTests/ImagePickerDemoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ImagePickerDemoTests.swift 3 | // ImagePickerDemoTests 4 | // 5 | // Created by TheAppGuruz-New-6 on 07/08/14. 6 | // Copyright (c) 2014 TheAppGuruz-New-6. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class ImagePickerDemoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | User-Interaction-with-Camera-using-UIImagePickerController-in-Swift- 2 | ==================================================================== 3 | 4 | Previously, we covered how to use UIImagePickerController in iOS. In this tutorial, we are going to learn how to pick an images from camera or photo library and saved into photo album. The iOS library provides the class UIImagePickerController which provides easy user interface and allows you to choose pictures, movies from camera, saved photo album and photo library for use in your application. It handles user’s interaction and gives result to its delegate object. It is based on source type provided to it before it presents. - See more at: http://www.theappguruz.com/blog/user-interaction-camera-using-uiimagepickercontroller-swift 5 | 6 | You can find complete tutorial on how to use the code repo here : [User Interaction with Camera using UIImagePickerController in Swift](http://www.theappguruz.com/blog/user-interaction-camera-using-uiimagepickercontroller-swift) 7 | 8 | This Tutorial has been presented by The App Guruz - One of the best iOS App Development Company in India 9 | -------------------------------------------------------------------------------- /ImagePickerDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /ImagePickerDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.tag.${PRODUCT_NAME:rfc1034identifier} 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 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /ImagePickerDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ImagePickerDemo 4 | // 5 | // Created by TheAppGuruz-New-6 on 07/08/14. 6 | // Copyright (c) 2014 TheAppGuruz-New-6. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | // func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool { 18 | // // Override point for customization after application launch. 19 | // return true 20 | // } 21 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { 22 | return true 23 | } 24 | 25 | func applicationWillResignActive(application: UIApplication) { 26 | // 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. 27 | // 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. 28 | } 29 | 30 | func applicationDidEnterBackground(application: UIApplication) { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | func applicationWillEnterForeground(application: UIApplication) { 36 | // 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. 37 | } 38 | 39 | func applicationDidBecomeActive(application: UIApplication) { 40 | // 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. 41 | } 42 | 43 | func applicationWillTerminate(application: UIApplication) { 44 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 45 | } 46 | 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /ImagePickerDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ImagePickerDemo 4 | // 5 | // Created by TheAppGuruz-New-6 on 07/08/14. 6 | // Copyright (c) 2014 TheAppGuruz-New-6. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController,UIAlertViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIPopoverControllerDelegate 12 | { 13 | @IBOutlet weak var btnClickMe: UIButton! 14 | @IBOutlet weak var imageView: UIImageView! 15 | var picker:UIImagePickerController?=UIImagePickerController() 16 | var popover:UIPopoverController?=nil 17 | 18 | override func viewDidLoad() 19 | { 20 | super.viewDidLoad() 21 | picker!.delegate=self 22 | // Do any additional setup after loading the view, typically from a nib. 23 | } 24 | 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | @IBAction func btnImagePickerClicked(sender: AnyObject) 31 | { 32 | let alert:UIAlertController=UIAlertController(title: "Choose Image", message: nil, preferredStyle: UIAlertControllerStyle.ActionSheet) 33 | 34 | let cameraAction = UIAlertAction(title: "Camera", style: UIAlertActionStyle.Default) 35 | { 36 | UIAlertAction in 37 | self.openCamera() 38 | 39 | } 40 | let gallaryAction = UIAlertAction(title: "Gallary", style: UIAlertActionStyle.Default) 41 | { 42 | UIAlertAction in 43 | self.openGallary() 44 | } 45 | let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel) 46 | { 47 | UIAlertAction in 48 | 49 | } 50 | 51 | // Add the actions 52 | picker?.delegate = self 53 | alert.addAction(cameraAction) 54 | alert.addAction(gallaryAction) 55 | alert.addAction(cancelAction) 56 | // Present the controller 57 | if UIDevice.currentDevice().userInterfaceIdiom == .Phone 58 | { 59 | self.presentViewController(alert, animated: true, completion: nil) 60 | } 61 | else 62 | { 63 | popover=UIPopoverController(contentViewController: alert) 64 | popover!.presentPopoverFromRect(btnClickMe.frame, inView: self.view, permittedArrowDirections: UIPopoverArrowDirection.Any, animated: true) 65 | } 66 | } 67 | func openCamera() 68 | { 69 | if(UIImagePickerController .isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera)) 70 | { 71 | picker!.sourceType = UIImagePickerControllerSourceType.Camera 72 | self .presentViewController(picker!, animated: true, completion: nil) 73 | } 74 | else 75 | { 76 | openGallary() 77 | } 78 | } 79 | func openGallary() 80 | { 81 | picker!.sourceType = UIImagePickerControllerSourceType.PhotoLibrary 82 | if UIDevice.currentDevice().userInterfaceIdiom == .Phone 83 | { 84 | self.presentViewController(picker!, animated: true, completion: nil) 85 | } 86 | else 87 | { 88 | popover=UIPopoverController(contentViewController: picker!) 89 | popover!.presentPopoverFromRect(btnClickMe.frame, inView: self.view, permittedArrowDirections: UIPopoverArrowDirection.Any, animated: true) 90 | } 91 | } 92 | func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) 93 | { 94 | picker .dismissViewControllerAnimated(true, completion: nil) 95 | imageView.image=info[UIImagePickerControllerOriginalImage] as? UIImage 96 | } 97 | func imagePickerControllerDidCancel(picker: UIImagePickerController) 98 | { 99 | print("picker cancel.") 100 | } 101 | 102 | 103 | } 104 | 105 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/xcuserdata/theappguruz-new-6.xcuserdatad/xcschemes/ImagePickerDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/xcuserdata/theappguruz-ios.xcuserdatad/xcschemes/ImagePickerDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ImagePickerDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /ImagePickerDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | EA6CC3B019935BA000834E65 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA6CC3AF19935BA000834E65 /* AppDelegate.swift */; }; 11 | EA6CC3B219935BA000834E65 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA6CC3B119935BA000834E65 /* ViewController.swift */; }; 12 | EA6CC3B519935BA000834E65 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EA6CC3B319935BA000834E65 /* Main.storyboard */; }; 13 | EA6CC3B719935BA000834E65 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EA6CC3B619935BA000834E65 /* Images.xcassets */; }; 14 | EA6CC3C319935BA000834E65 /* ImagePickerDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA6CC3C219935BA000834E65 /* ImagePickerDemoTests.swift */; }; 15 | EA6CC3CD19937D4900834E65 /* images.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = EA6CC3CC19937D4900834E65 /* images.jpeg */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | EA6CC3BD19935BA000834E65 /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = EA6CC3A219935BA000834E65 /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = EA6CC3A919935BA000834E65; 24 | remoteInfo = ImagePickerDemo; 25 | }; 26 | /* End PBXContainerItemProxy section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | EA6CC3AA19935BA000834E65 /* ImagePickerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ImagePickerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | EA6CC3AE19935BA000834E65 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | EA6CC3AF19935BA000834E65 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | EA6CC3B119935BA000834E65 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 33 | EA6CC3B419935BA000834E65 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 34 | EA6CC3B619935BA000834E65 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 35 | EA6CC3BC19935BA000834E65 /* ImagePickerDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ImagePickerDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | EA6CC3C119935BA000834E65 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | EA6CC3C219935BA000834E65 /* ImagePickerDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImagePickerDemoTests.swift; sourceTree = ""; }; 38 | EA6CC3CC19937D4900834E65 /* images.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = images.jpeg; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | EA6CC3A719935BA000834E65 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | EA6CC3B919935BA000834E65 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | /* End PBXFrameworksBuildPhase section */ 57 | 58 | /* Begin PBXGroup section */ 59 | EA6CC3A119935BA000834E65 = { 60 | isa = PBXGroup; 61 | children = ( 62 | EA6CC3AC19935BA000834E65 /* ImagePickerDemo */, 63 | EA6CC3BF19935BA000834E65 /* ImagePickerDemoTests */, 64 | EA6CC3AB19935BA000834E65 /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | EA6CC3AB19935BA000834E65 /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | EA6CC3AA19935BA000834E65 /* ImagePickerDemo.app */, 72 | EA6CC3BC19935BA000834E65 /* ImagePickerDemoTests.xctest */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | EA6CC3AC19935BA000834E65 /* ImagePickerDemo */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | EA6CC3AF19935BA000834E65 /* AppDelegate.swift */, 81 | EA6CC3B119935BA000834E65 /* ViewController.swift */, 82 | EA6CC3B319935BA000834E65 /* Main.storyboard */, 83 | EA6CC3B619935BA000834E65 /* Images.xcassets */, 84 | EA6CC3AD19935BA000834E65 /* Supporting Files */, 85 | ); 86 | path = ImagePickerDemo; 87 | sourceTree = ""; 88 | }; 89 | EA6CC3AD19935BA000834E65 /* Supporting Files */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | EA6CC3CC19937D4900834E65 /* images.jpeg */, 93 | EA6CC3AE19935BA000834E65 /* Info.plist */, 94 | ); 95 | name = "Supporting Files"; 96 | sourceTree = ""; 97 | }; 98 | EA6CC3BF19935BA000834E65 /* ImagePickerDemoTests */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | EA6CC3C219935BA000834E65 /* ImagePickerDemoTests.swift */, 102 | EA6CC3C019935BA000834E65 /* Supporting Files */, 103 | ); 104 | path = ImagePickerDemoTests; 105 | sourceTree = ""; 106 | }; 107 | EA6CC3C019935BA000834E65 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | EA6CC3C119935BA000834E65 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | /* End PBXGroup section */ 116 | 117 | /* Begin PBXNativeTarget section */ 118 | EA6CC3A919935BA000834E65 /* ImagePickerDemo */ = { 119 | isa = PBXNativeTarget; 120 | buildConfigurationList = EA6CC3C619935BA000834E65 /* Build configuration list for PBXNativeTarget "ImagePickerDemo" */; 121 | buildPhases = ( 122 | EA6CC3A619935BA000834E65 /* Sources */, 123 | EA6CC3A719935BA000834E65 /* Frameworks */, 124 | EA6CC3A819935BA000834E65 /* Resources */, 125 | ); 126 | buildRules = ( 127 | ); 128 | dependencies = ( 129 | ); 130 | name = ImagePickerDemo; 131 | productName = ImagePickerDemo; 132 | productReference = EA6CC3AA19935BA000834E65 /* ImagePickerDemo.app */; 133 | productType = "com.apple.product-type.application"; 134 | }; 135 | EA6CC3BB19935BA000834E65 /* ImagePickerDemoTests */ = { 136 | isa = PBXNativeTarget; 137 | buildConfigurationList = EA6CC3C919935BA000834E65 /* Build configuration list for PBXNativeTarget "ImagePickerDemoTests" */; 138 | buildPhases = ( 139 | EA6CC3B819935BA000834E65 /* Sources */, 140 | EA6CC3B919935BA000834E65 /* Frameworks */, 141 | EA6CC3BA19935BA000834E65 /* Resources */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | EA6CC3BE19935BA000834E65 /* PBXTargetDependency */, 147 | ); 148 | name = ImagePickerDemoTests; 149 | productName = ImagePickerDemoTests; 150 | productReference = EA6CC3BC19935BA000834E65 /* ImagePickerDemoTests.xctest */; 151 | productType = "com.apple.product-type.bundle.unit-test"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | EA6CC3A219935BA000834E65 /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastSwiftMigration = 0700; 160 | LastSwiftUpdateCheck = 0700; 161 | LastUpgradeCheck = 0600; 162 | ORGANIZATIONNAME = "TheAppGuruz-New-6"; 163 | TargetAttributes = { 164 | EA6CC3A919935BA000834E65 = { 165 | CreatedOnToolsVersion = 6.0; 166 | }; 167 | EA6CC3BB19935BA000834E65 = { 168 | CreatedOnToolsVersion = 6.0; 169 | TestTargetID = EA6CC3A919935BA000834E65; 170 | }; 171 | }; 172 | }; 173 | buildConfigurationList = EA6CC3A519935BA000834E65 /* Build configuration list for PBXProject "ImagePickerDemo" */; 174 | compatibilityVersion = "Xcode 3.2"; 175 | developmentRegion = English; 176 | hasScannedForEncodings = 0; 177 | knownRegions = ( 178 | en, 179 | Base, 180 | ); 181 | mainGroup = EA6CC3A119935BA000834E65; 182 | productRefGroup = EA6CC3AB19935BA000834E65 /* Products */; 183 | projectDirPath = ""; 184 | projectRoot = ""; 185 | targets = ( 186 | EA6CC3A919935BA000834E65 /* ImagePickerDemo */, 187 | EA6CC3BB19935BA000834E65 /* ImagePickerDemoTests */, 188 | ); 189 | }; 190 | /* End PBXProject section */ 191 | 192 | /* Begin PBXResourcesBuildPhase section */ 193 | EA6CC3A819935BA000834E65 /* Resources */ = { 194 | isa = PBXResourcesBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | EA6CC3B519935BA000834E65 /* Main.storyboard in Resources */, 198 | EA6CC3B719935BA000834E65 /* Images.xcassets in Resources */, 199 | EA6CC3CD19937D4900834E65 /* images.jpeg in Resources */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | EA6CC3BA19935BA000834E65 /* Resources */ = { 204 | isa = PBXResourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | /* End PBXResourcesBuildPhase section */ 211 | 212 | /* Begin PBXSourcesBuildPhase section */ 213 | EA6CC3A619935BA000834E65 /* Sources */ = { 214 | isa = PBXSourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | EA6CC3B219935BA000834E65 /* ViewController.swift in Sources */, 218 | EA6CC3B019935BA000834E65 /* AppDelegate.swift in Sources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | EA6CC3B819935BA000834E65 /* Sources */ = { 223 | isa = PBXSourcesBuildPhase; 224 | buildActionMask = 2147483647; 225 | files = ( 226 | EA6CC3C319935BA000834E65 /* ImagePickerDemoTests.swift in Sources */, 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | }; 230 | /* End PBXSourcesBuildPhase section */ 231 | 232 | /* Begin PBXTargetDependency section */ 233 | EA6CC3BE19935BA000834E65 /* PBXTargetDependency */ = { 234 | isa = PBXTargetDependency; 235 | target = EA6CC3A919935BA000834E65 /* ImagePickerDemo */; 236 | targetProxy = EA6CC3BD19935BA000834E65 /* PBXContainerItemProxy */; 237 | }; 238 | /* End PBXTargetDependency section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | EA6CC3B319935BA000834E65 /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | EA6CC3B419935BA000834E65 /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | /* End PBXVariantGroup section */ 250 | 251 | /* Begin XCBuildConfiguration section */ 252 | EA6CC3C419935BA000834E65 /* Debug */ = { 253 | isa = XCBuildConfiguration; 254 | buildSettings = { 255 | ALWAYS_SEARCH_USER_PATHS = NO; 256 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 257 | CLANG_CXX_LIBRARY = "libc++"; 258 | CLANG_ENABLE_MODULES = YES; 259 | CLANG_ENABLE_OBJC_ARC = YES; 260 | CLANG_WARN_BOOL_CONVERSION = YES; 261 | CLANG_WARN_CONSTANT_CONVERSION = YES; 262 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 263 | CLANG_WARN_EMPTY_BODY = YES; 264 | CLANG_WARN_ENUM_CONVERSION = YES; 265 | CLANG_WARN_INT_CONVERSION = YES; 266 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 267 | CLANG_WARN_UNREACHABLE_CODE = YES; 268 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 269 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 270 | COPY_PHASE_STRIP = NO; 271 | ENABLE_STRICT_OBJC_MSGSEND = YES; 272 | GCC_C_LANGUAGE_STANDARD = gnu99; 273 | GCC_DYNAMIC_NO_PIC = NO; 274 | GCC_OPTIMIZATION_LEVEL = 0; 275 | GCC_PREPROCESSOR_DEFINITIONS = ( 276 | "DEBUG=1", 277 | "$(inherited)", 278 | ); 279 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 280 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 281 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 282 | GCC_WARN_UNDECLARED_SELECTOR = YES; 283 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 284 | GCC_WARN_UNUSED_FUNCTION = YES; 285 | GCC_WARN_UNUSED_VARIABLE = YES; 286 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 287 | MTL_ENABLE_DEBUG_INFO = YES; 288 | ONLY_ACTIVE_ARCH = YES; 289 | SDKROOT = iphoneos; 290 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 291 | TARGETED_DEVICE_FAMILY = "1,2"; 292 | }; 293 | name = Debug; 294 | }; 295 | EA6CC3C519935BA000834E65 /* Release */ = { 296 | isa = XCBuildConfiguration; 297 | buildSettings = { 298 | ALWAYS_SEARCH_USER_PATHS = NO; 299 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 300 | CLANG_CXX_LIBRARY = "libc++"; 301 | CLANG_ENABLE_MODULES = YES; 302 | CLANG_ENABLE_OBJC_ARC = YES; 303 | CLANG_WARN_BOOL_CONVERSION = YES; 304 | CLANG_WARN_CONSTANT_CONVERSION = YES; 305 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 306 | CLANG_WARN_EMPTY_BODY = YES; 307 | CLANG_WARN_ENUM_CONVERSION = YES; 308 | CLANG_WARN_INT_CONVERSION = YES; 309 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 310 | CLANG_WARN_UNREACHABLE_CODE = YES; 311 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 312 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 313 | COPY_PHASE_STRIP = YES; 314 | ENABLE_NS_ASSERTIONS = NO; 315 | ENABLE_STRICT_OBJC_MSGSEND = YES; 316 | GCC_C_LANGUAGE_STANDARD = gnu99; 317 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 318 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 319 | GCC_WARN_UNDECLARED_SELECTOR = YES; 320 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 321 | GCC_WARN_UNUSED_FUNCTION = YES; 322 | GCC_WARN_UNUSED_VARIABLE = YES; 323 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 324 | MTL_ENABLE_DEBUG_INFO = NO; 325 | SDKROOT = iphoneos; 326 | TARGETED_DEVICE_FAMILY = "1,2"; 327 | VALIDATE_PRODUCT = YES; 328 | }; 329 | name = Release; 330 | }; 331 | EA6CC3C719935BA000834E65 /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | buildSettings = { 334 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 335 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 336 | INFOPLIST_FILE = ImagePickerDemo/Info.plist; 337 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 338 | PRODUCT_NAME = "$(TARGET_NAME)"; 339 | }; 340 | name = Debug; 341 | }; 342 | EA6CC3C819935BA000834E65 /* Release */ = { 343 | isa = XCBuildConfiguration; 344 | buildSettings = { 345 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 346 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 347 | INFOPLIST_FILE = ImagePickerDemo/Info.plist; 348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 349 | PRODUCT_NAME = "$(TARGET_NAME)"; 350 | }; 351 | name = Release; 352 | }; 353 | EA6CC3CA19935BA000834E65 /* Debug */ = { 354 | isa = XCBuildConfiguration; 355 | buildSettings = { 356 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ImagePickerDemo.app/ImagePickerDemo"; 357 | FRAMEWORK_SEARCH_PATHS = ( 358 | "$(SDKROOT)/Developer/Library/Frameworks", 359 | "$(inherited)", 360 | ); 361 | GCC_PREPROCESSOR_DEFINITIONS = ( 362 | "DEBUG=1", 363 | "$(inherited)", 364 | ); 365 | INFOPLIST_FILE = ImagePickerDemoTests/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 367 | PRODUCT_NAME = "$(TARGET_NAME)"; 368 | TEST_HOST = "$(BUNDLE_LOADER)"; 369 | }; 370 | name = Debug; 371 | }; 372 | EA6CC3CB19935BA000834E65 /* Release */ = { 373 | isa = XCBuildConfiguration; 374 | buildSettings = { 375 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ImagePickerDemo.app/ImagePickerDemo"; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(SDKROOT)/Developer/Library/Frameworks", 378 | "$(inherited)", 379 | ); 380 | INFOPLIST_FILE = ImagePickerDemoTests/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 382 | PRODUCT_NAME = "$(TARGET_NAME)"; 383 | TEST_HOST = "$(BUNDLE_LOADER)"; 384 | }; 385 | name = Release; 386 | }; 387 | /* End XCBuildConfiguration section */ 388 | 389 | /* Begin XCConfigurationList section */ 390 | EA6CC3A519935BA000834E65 /* Build configuration list for PBXProject "ImagePickerDemo" */ = { 391 | isa = XCConfigurationList; 392 | buildConfigurations = ( 393 | EA6CC3C419935BA000834E65 /* Debug */, 394 | EA6CC3C519935BA000834E65 /* Release */, 395 | ); 396 | defaultConfigurationIsVisible = 0; 397 | defaultConfigurationName = Release; 398 | }; 399 | EA6CC3C619935BA000834E65 /* Build configuration list for PBXNativeTarget "ImagePickerDemo" */ = { 400 | isa = XCConfigurationList; 401 | buildConfigurations = ( 402 | EA6CC3C719935BA000834E65 /* Debug */, 403 | EA6CC3C819935BA000834E65 /* Release */, 404 | ); 405 | defaultConfigurationIsVisible = 0; 406 | defaultConfigurationName = Release; 407 | }; 408 | EA6CC3C919935BA000834E65 /* Build configuration list for PBXNativeTarget "ImagePickerDemoTests" */ = { 409 | isa = XCConfigurationList; 410 | buildConfigurations = ( 411 | EA6CC3CA19935BA000834E65 /* Debug */, 412 | EA6CC3CB19935BA000834E65 /* Release */, 413 | ); 414 | defaultConfigurationIsVisible = 0; 415 | defaultConfigurationName = Release; 416 | }; 417 | /* End XCConfigurationList section */ 418 | }; 419 | rootObject = EA6CC3A219935BA000834E65 /* Project object */; 420 | } 421 | --------------------------------------------------------------------------------