From c70f89d624d8d817c361cc7f5edb990925f05a44 Mon Sep 17 00:00:00 2001 From: Akshay Hegde Date: Tue, 7 Apr 2015 20:07:33 -0700 Subject: [PATCH] Add awesome and cool iPhone App This will make our highly useful product more mobile and increase our established user base to insane levels. --- .../project.pbxproj | 298 ++++++++++++++++++ .../illacceptanything/AppDelegate.swift | 14 + .../Base.lproj/LaunchScreen.xib | 41 +++ .../Base.lproj/Main.storyboard | 46 +++ .../AppIcon.appiconset/Contents.json | 68 ++++ .../illacceptanything/Info.plist | 47 +++ .../illacceptanything/ViewController.swift | 32 ++ 7 files changed, 546 insertions(+) create mode 100644 illacceptanything/illacceptanything.xcodeproj/project.pbxproj create mode 100644 illacceptanything/illacceptanything/AppDelegate.swift create mode 100644 illacceptanything/illacceptanything/Base.lproj/LaunchScreen.xib create mode 100644 illacceptanything/illacceptanything/Base.lproj/Main.storyboard create mode 100644 illacceptanything/illacceptanything/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 illacceptanything/illacceptanything/Info.plist create mode 100644 illacceptanything/illacceptanything/ViewController.swift diff --git a/illacceptanything/illacceptanything.xcodeproj/project.pbxproj b/illacceptanything/illacceptanything.xcodeproj/project.pbxproj new file mode 100644 index 000000000000..82a68e9f4363 --- /dev/null +++ b/illacceptanything/illacceptanything.xcodeproj/project.pbxproj @@ -0,0 +1,298 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3DFDB6531AD4CCE60079A36F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DFDB6521AD4CCE60079A36F /* AppDelegate.swift */; }; + 3DFDB6551AD4CCE60079A36F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DFDB6541AD4CCE60079A36F /* ViewController.swift */; }; + 3DFDB6581AD4CCE60079A36F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DFDB6561AD4CCE60079A36F /* Main.storyboard */; }; + 3DFDB65A1AD4CCE60079A36F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3DFDB6591AD4CCE60079A36F /* Images.xcassets */; }; + 3DFDB65D1AD4CCE60079A36F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3DFDB65B1AD4CCE60079A36F /* LaunchScreen.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 3DFDB64D1AD4CCE60079A36F /* illacceptanything.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = illacceptanything.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3DFDB6511AD4CCE60079A36F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 3DFDB6521AD4CCE60079A36F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 3DFDB6541AD4CCE60079A36F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 3DFDB6571AD4CCE60079A36F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 3DFDB6591AD4CCE60079A36F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 3DFDB65C1AD4CCE60079A36F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3DFDB64A1AD4CCE60079A36F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3DFDB6441AD4CCE60079A36F = { + isa = PBXGroup; + children = ( + 3DFDB64F1AD4CCE60079A36F /* illacceptanything */, + 3DFDB64E1AD4CCE60079A36F /* Products */, + ); + sourceTree = ""; + }; + 3DFDB64E1AD4CCE60079A36F /* Products */ = { + isa = PBXGroup; + children = ( + 3DFDB64D1AD4CCE60079A36F /* illacceptanything.app */, + ); + name = Products; + sourceTree = ""; + }; + 3DFDB64F1AD4CCE60079A36F /* illacceptanything */ = { + isa = PBXGroup; + children = ( + 3DFDB6521AD4CCE60079A36F /* AppDelegate.swift */, + 3DFDB6541AD4CCE60079A36F /* ViewController.swift */, + 3DFDB6561AD4CCE60079A36F /* Main.storyboard */, + 3DFDB6591AD4CCE60079A36F /* Images.xcassets */, + 3DFDB65B1AD4CCE60079A36F /* LaunchScreen.xib */, + 3DFDB6501AD4CCE60079A36F /* Supporting Files */, + ); + path = illacceptanything; + sourceTree = ""; + }; + 3DFDB6501AD4CCE60079A36F /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3DFDB6511AD4CCE60079A36F /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3DFDB64C1AD4CCE60079A36F /* illacceptanything */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3DFDB66C1AD4CCE60079A36F /* Build configuration list for PBXNativeTarget "illacceptanything" */; + buildPhases = ( + 3DFDB6491AD4CCE60079A36F /* Sources */, + 3DFDB64A1AD4CCE60079A36F /* Frameworks */, + 3DFDB64B1AD4CCE60079A36F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = illacceptanything; + productName = illacceptanything; + productReference = 3DFDB64D1AD4CCE60079A36F /* illacceptanything.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3DFDB6451AD4CCE60079A36F /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0630; + ORGANIZATIONNAME = illaceptanything; + TargetAttributes = { + 3DFDB64C1AD4CCE60079A36F = { + CreatedOnToolsVersion = 6.3; + }; + }; + }; + buildConfigurationList = 3DFDB6481AD4CCE60079A36F /* Build configuration list for PBXProject "illacceptanything" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3DFDB6441AD4CCE60079A36F; + productRefGroup = 3DFDB64E1AD4CCE60079A36F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3DFDB64C1AD4CCE60079A36F /* illacceptanything */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3DFDB64B1AD4CCE60079A36F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3DFDB6581AD4CCE60079A36F /* Main.storyboard in Resources */, + 3DFDB65D1AD4CCE60079A36F /* LaunchScreen.xib in Resources */, + 3DFDB65A1AD4CCE60079A36F /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3DFDB6491AD4CCE60079A36F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3DFDB6551AD4CCE60079A36F /* ViewController.swift in Sources */, + 3DFDB6531AD4CCE60079A36F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 3DFDB6561AD4CCE60079A36F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 3DFDB6571AD4CCE60079A36F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 3DFDB65B1AD4CCE60079A36F /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 3DFDB65C1AD4CCE60079A36F /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3DFDB66A1AD4CCE60079A36F /* 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_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_STRICT_OBJC_MSGSEND = 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_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.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3DFDB66B1AD4CCE60079A36F /* 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_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 = 8.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3DFDB66D1AD4CCE60079A36F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = illacceptanything/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 3DFDB66E1AD4CCE60079A36F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = illacceptanything/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3DFDB6481AD4CCE60079A36F /* Build configuration list for PBXProject "illacceptanything" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3DFDB66A1AD4CCE60079A36F /* Debug */, + 3DFDB66B1AD4CCE60079A36F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3DFDB66C1AD4CCE60079A36F /* Build configuration list for PBXNativeTarget "illacceptanything" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3DFDB66D1AD4CCE60079A36F /* Debug */, + 3DFDB66E1AD4CCE60079A36F /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3DFDB6451AD4CCE60079A36F /* Project object */; +} diff --git a/illacceptanything/illacceptanything/AppDelegate.swift b/illacceptanything/illacceptanything/AppDelegate.swift new file mode 100644 index 000000000000..d0af3f5a21da --- /dev/null +++ b/illacceptanything/illacceptanything/AppDelegate.swift @@ -0,0 +1,14 @@ +// +// AppDelegate.swift +// illacceptanything +// +// Created by illacceptanything on 4/7/15. +// Copyright (c) 2015 illaceptanything. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + var window: UIWindow? +} diff --git a/illacceptanything/illacceptanything/Base.lproj/LaunchScreen.xib b/illacceptanything/illacceptanything/Base.lproj/LaunchScreen.xib new file mode 100644 index 000000000000..cb24bb97920b --- /dev/null +++ b/illacceptanything/illacceptanything/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/illacceptanything/illacceptanything/Base.lproj/Main.storyboard b/illacceptanything/illacceptanything/Base.lproj/Main.storyboard new file mode 100644 index 000000000000..6083e0d45485 --- /dev/null +++ b/illacceptanything/illacceptanything/Base.lproj/Main.storyboard @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/illacceptanything/illacceptanything/Images.xcassets/AppIcon.appiconset/Contents.json b/illacceptanything/illacceptanything/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..36d2c80d8893 --- /dev/null +++ b/illacceptanything/illacceptanything/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/illacceptanything/illacceptanything/Info.plist b/illacceptanything/illacceptanything/Info.plist new file mode 100644 index 000000000000..72cbc93286c3 --- /dev/null +++ b/illacceptanything/illacceptanything/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.illacceptanything.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/illacceptanything/illacceptanything/ViewController.swift b/illacceptanything/illacceptanything/ViewController.swift new file mode 100644 index 000000000000..b2768b2fe34d --- /dev/null +++ b/illacceptanything/illacceptanything/ViewController.swift @@ -0,0 +1,32 @@ +// +// ViewController.swift +// illacceptanything +// +// Created by illacceptanything on 4/7/15. +// Copyright (c) 2015 illaceptanything. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + @IBOutlet weak var ofcourseIwill: UIButton! + + override func viewDidAppear(animated: Bool) { + super.viewDidAppear(animated) + } + + @IBAction func didAcceptAnything(sender: UIButton) { + let alert = UIAlertController(title: "Woah Dude", + message: "You don't believe me?", preferredStyle: .Alert) + + alert.addAction(UIAlertAction(title: "Of course not", style: .Default) { _ in + sender.setTitle("but I asked nicely :(", forState: .Normal) + }) + alert.addAction(UIAlertAction(title: "Nah, you never lie", style: .Default) { _ in + sender.setTitle("That's right <3", forState: .Normal) + }) + presentViewController(alert, animated: true, completion: nil) + sender.enabled = false + } +}