diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit.xcodeproj/project.pbxproj b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit.xcodeproj/project.pbxproj new file mode 100644 index 0000000..b0dbf84 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit.xcodeproj/project.pbxproj @@ -0,0 +1,336 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + B508C6741E3F833300C83C6A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B508C6731E3F833300C83C6A /* AppDelegate.swift */; }; + B508C6761E3F833300C83C6A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B508C6751E3F833300C83C6A /* ViewController.swift */; }; + B508C6791E3F833300C83C6A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B508C6771E3F833300C83C6A /* Main.storyboard */; }; + B508C67B1E3F833300C83C6A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B508C67A1E3F833300C83C6A /* Assets.xcassets */; }; + B508C67E1E3F833300C83C6A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B508C67C1E3F833300C83C6A /* LaunchScreen.storyboard */; }; + B508C68A1E3F8B4700C83C6A /* hubcap.jpg in Resources */ = {isa = PBXBuildFile; fileRef = B508C6891E3F8B4700C83C6A /* hubcap.jpg */; }; + B5E5F75F1E64821F00280CC5 /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B5E5F75E1E64821F00280CC5 /* CloudKit.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + B508C6701E3F833300C83C6A /* HelloCloudKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloCloudKit.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B508C6731E3F833300C83C6A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + B508C6751E3F833300C83C6A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + B508C6781E3F833300C83C6A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + B508C67A1E3F833300C83C6A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + B508C67D1E3F833300C83C6A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + B508C67F1E3F833300C83C6A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B508C6891E3F8B4700C83C6A /* hubcap.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = hubcap.jpg; sourceTree = ""; }; + B5E5F75D1E64821300280CC5 /* HelloCloudKit.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = HelloCloudKit.entitlements; sourceTree = ""; }; + B5E5F75E1E64821F00280CC5 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B508C66D1E3F833200C83C6A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B5E5F75F1E64821F00280CC5 /* CloudKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B508C6671E3F833200C83C6A = { + isa = PBXGroup; + children = ( + B508C6721E3F833300C83C6A /* HelloCloudKit */, + B508C6711E3F833300C83C6A /* Products */, + B508C6861E3F834D00C83C6A /* Frameworks */, + ); + sourceTree = ""; + }; + B508C6711E3F833300C83C6A /* Products */ = { + isa = PBXGroup; + children = ( + B508C6701E3F833300C83C6A /* HelloCloudKit.app */, + ); + name = Products; + sourceTree = ""; + }; + B508C6721E3F833300C83C6A /* HelloCloudKit */ = { + isa = PBXGroup; + children = ( + B5E5F75D1E64821300280CC5 /* HelloCloudKit.entitlements */, + B508C6731E3F833300C83C6A /* AppDelegate.swift */, + B508C6751E3F833300C83C6A /* ViewController.swift */, + B508C6771E3F833300C83C6A /* Main.storyboard */, + B508C67A1E3F833300C83C6A /* Assets.xcassets */, + B508C67C1E3F833300C83C6A /* LaunchScreen.storyboard */, + B508C6891E3F8B4700C83C6A /* hubcap.jpg */, + B508C67F1E3F833300C83C6A /* Info.plist */, + ); + path = HelloCloudKit; + sourceTree = ""; + }; + B508C6861E3F834D00C83C6A /* Frameworks */ = { + isa = PBXGroup; + children = ( + B5E5F75E1E64821F00280CC5 /* CloudKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B508C66F1E3F833200C83C6A /* HelloCloudKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = B508C6821E3F833300C83C6A /* Build configuration list for PBXNativeTarget "HelloCloudKit" */; + buildPhases = ( + B508C66C1E3F833200C83C6A /* Sources */, + B508C66D1E3F833200C83C6A /* Frameworks */, + B508C66E1E3F833200C83C6A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HelloCloudKit; + productName = HelloCloudKit; + productReference = B508C6701E3F833300C83C6A /* HelloCloudKit.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B508C6681E3F833200C83C6A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0820; + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = NSScreencast; + TargetAttributes = { + B508C66F1E3F833200C83C6A = { + CreatedOnToolsVersion = 8.2.1; + DevelopmentTeam = C2K3864N2N; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Push = { + enabled = 1; + }; + com.apple.iCloud = { + enabled = 1; + }; + }; + }; + }; + }; + buildConfigurationList = B508C66B1E3F833200C83C6A /* Build configuration list for PBXProject "HelloCloudKit" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B508C6671E3F833200C83C6A; + productRefGroup = B508C6711E3F833300C83C6A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B508C66F1E3F833200C83C6A /* HelloCloudKit */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B508C66E1E3F833200C83C6A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B508C68A1E3F8B4700C83C6A /* hubcap.jpg in Resources */, + B508C67E1E3F833300C83C6A /* LaunchScreen.storyboard in Resources */, + B508C67B1E3F833300C83C6A /* Assets.xcassets in Resources */, + B508C6791E3F833300C83C6A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B508C66C1E3F833200C83C6A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B508C6761E3F833300C83C6A /* ViewController.swift in Sources */, + B508C6741E3F833300C83C6A /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + B508C6771E3F833300C83C6A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B508C6781E3F833300C83C6A /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + B508C67C1E3F833300C83C6A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B508C67D1E3F833300C83C6A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + B508C6801E3F833300C83C6A /* Debug */ = { + isa = XCBuildConfiguration; + 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_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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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 = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + B508C6811E3F833300C83C6A /* Release */ = { + isa = XCBuildConfiguration; + 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_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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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 = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B508C6831E3F833300C83C6A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = HelloCloudKit/HelloCloudKit.entitlements; + DEVELOPMENT_TEAM = C2K3864N2N; + INFOPLIST_FILE = HelloCloudKit/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.nsscreencast.HelloCloudKit; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + B508C6841E3F833300C83C6A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = HelloCloudKit/HelloCloudKit.entitlements; + DEVELOPMENT_TEAM = C2K3864N2N; + INFOPLIST_FILE = HelloCloudKit/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.nsscreencast.HelloCloudKit; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B508C66B1E3F833200C83C6A /* Build configuration list for PBXProject "HelloCloudKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B508C6801E3F833300C83C6A /* Debug */, + B508C6811E3F833300C83C6A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B508C6821E3F833300C83C6A /* Build configuration list for PBXNativeTarget "HelloCloudKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B508C6831E3F833300C83C6A /* Debug */, + B508C6841E3F833300C83C6A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = B508C6681E3F833200C83C6A /* Project object */; +} diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/AppDelegate.swift b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/AppDelegate.swift new file mode 100644 index 0000000..0cfe053 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/AppDelegate.swift @@ -0,0 +1,73 @@ +// +// AppDelegate.swift +// HelloCloudKit +// +// Created by Ben Scheirman on 1/30/17. +// Copyright © 2017 NSScreencast. All rights reserved. +// + +import UIKit +import CoreLocation +import CloudKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + + let container = CKContainer.default() + + let db = container.publicCloudDatabase + + let recordID = CKRecordID(recordName: "my-restaurant") + + let record = CKRecord(recordType: "Restaurant", recordID: recordID) + + record["name"] = "Hubcap Grill" as NSString + record["address"] = "1133 W 19th St, Houston, TX 77008" as NSString + record["location"] = CLLocation(latitude: 29.8029520, longitude: -95.4194210) + + let imageURL = Bundle.main.url(forResource: "hubcap", withExtension: "jpg")! + record["image"] = CKAsset(fileURL: imageURL) + + print("saving...") + db.save(record) { (record, error) in + if let r = record { + print("Saved: \(r)") + } else { + print("ERROR: \(error!)") + } + } + + + + 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 invalidate graphics rendering callbacks. 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 active 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/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/AppIcon.appiconset/Contents.json b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..b8236c6 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,48 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/Contents.json b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/LaunchScreen.storyboard b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/Main.storyboard b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/Main.storyboard new file mode 100644 index 0000000..273375f --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/HelloCloudKit.entitlements b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/HelloCloudKit.entitlements new file mode 100644 index 0000000..c97793b --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/HelloCloudKit.entitlements @@ -0,0 +1,18 @@ + + + + + aps-environment + development + com.apple.developer.icloud-container-identifiers + + iCloud.$(CFBundleIdentifier) + + com.apple.developer.icloud-services + + CloudKit + + com.apple.developer.ubiquity-kvstore-identifier + $(TeamIdentifierPrefix)$(CFBundleIdentifier) + + diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Info.plist b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Info.plist new file mode 100644 index 0000000..38e98af --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/ViewController.swift b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/ViewController.swift new file mode 100644 index 0000000..4d3d598 --- /dev/null +++ b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/ViewController.swift @@ -0,0 +1,25 @@ +// +// ViewController.swift +// HelloCloudKit +// +// Created by Ben Scheirman on 1/30/17. +// Copyright © 2017 NSScreencast. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // 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. + } + + +} + diff --git a/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/hubcap.jpg b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/hubcap.jpg new file mode 100644 index 0000000..9674d26 Binary files /dev/null and b/258-hello-cloud-kit-part-1/HelloCloudKit/HelloCloudKit/hubcap.jpg differ