| @@ -0,0 +1,111 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Scheme | ||
| LastUpgradeVersion = "0800" | ||
| version = "1.3"> | ||
| <BuildAction | ||
| parallelizeBuildables = "YES" | ||
| buildImplicitDependencies = "YES"> | ||
| <BuildActionEntries> | ||
| <BuildActionEntry | ||
| buildForTesting = "YES" | ||
| buildForRunning = "YES" | ||
| buildForProfiling = "YES" | ||
| buildForArchiving = "YES" | ||
| buildForAnalyzing = "YES"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346621DB0CD6700DEA660" | ||
| BuildableName = "HelloJson.app" | ||
| BlueprintName = "HelloJson" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildActionEntry> | ||
| </BuildActionEntries> | ||
| </BuildAction> | ||
| <TestAction | ||
| buildConfiguration = "Debug" | ||
| selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| shouldUseLaunchSchemeArgsEnv = "YES"> | ||
| <Testables> | ||
| <TestableReference | ||
| skipped = "NO"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346761DB0CD6700DEA660" | ||
| BuildableName = "HelloJsonTests.xctest" | ||
| BlueprintName = "HelloJsonTests" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </TestableReference> | ||
| <TestableReference | ||
| skipped = "NO"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346811DB0CD6700DEA660" | ||
| BuildableName = "HelloJsonUITests.xctest" | ||
| BlueprintName = "HelloJsonUITests" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </TestableReference> | ||
| </Testables> | ||
| <MacroExpansion> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346621DB0CD6700DEA660" | ||
| BuildableName = "HelloJson.app" | ||
| BlueprintName = "HelloJson" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </MacroExpansion> | ||
| <AdditionalOptions> | ||
| </AdditionalOptions> | ||
| </TestAction> | ||
| <LaunchAction | ||
| buildConfiguration = "Debug" | ||
| selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| launchStyle = "0" | ||
| useCustomWorkingDirectory = "NO" | ||
| ignoresPersistentStateOnLaunch = "NO" | ||
| debugDocumentVersioning = "YES" | ||
| debugServiceExtension = "internal" | ||
| allowLocationSimulation = "YES"> | ||
| <BuildableProductRunnable | ||
| runnableDebuggingMode = "0"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346621DB0CD6700DEA660" | ||
| BuildableName = "HelloJson.app" | ||
| BlueprintName = "HelloJson" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildableProductRunnable> | ||
| <AdditionalOptions> | ||
| </AdditionalOptions> | ||
| </LaunchAction> | ||
| <ProfileAction | ||
| buildConfiguration = "Release" | ||
| shouldUseLaunchSchemeArgsEnv = "YES" | ||
| savedToolIdentifier = "" | ||
| useCustomWorkingDirectory = "NO" | ||
| debugDocumentVersioning = "YES"> | ||
| <BuildableProductRunnable | ||
| runnableDebuggingMode = "0"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "B0C346621DB0CD6700DEA660" | ||
| BuildableName = "HelloJson.app" | ||
| BlueprintName = "HelloJson" | ||
| ReferencedContainer = "container:HelloJson.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildableProductRunnable> | ||
| </ProfileAction> | ||
| <AnalyzeAction | ||
| buildConfiguration = "Debug"> | ||
| </AnalyzeAction> | ||
| <ArchiveAction | ||
| buildConfiguration = "Release" | ||
| revealArchiveInOrganizer = "YES"> | ||
| </ArchiveAction> | ||
| </Scheme> |
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>SchemeUserState</key> | ||
| <dict> | ||
| <key>HelloJson.xcscheme</key> | ||
| <dict> | ||
| <key>orderHint</key> | ||
| <integer>0</integer> | ||
| </dict> | ||
| </dict> | ||
| <key>SuppressBuildableAutocreation</key> | ||
| <dict> | ||
| <key>B0C346621DB0CD6700DEA660</key> | ||
| <dict> | ||
| <key>primary</key> | ||
| <true/> | ||
| </dict> | ||
| <key>B0C346761DB0CD6700DEA660</key> | ||
| <dict> | ||
| <key>primary</key> | ||
| <true/> | ||
| </dict> | ||
| <key>B0C346811DB0CD6700DEA660</key> | ||
| <dict> | ||
| <key>primary</key> | ||
| <true/> | ||
| </dict> | ||
| </dict> | ||
| </dict> | ||
| </plist> |
| @@ -0,0 +1,46 @@ | ||
| // | ||
| // AppDelegate.swift | ||
| // HelloJson | ||
| // | ||
| // Created by denny on 10/14/16. | ||
| // Copyright © 2016 denny. All rights reserved. | ||
| // | ||
| import UIKit | ||
|
|
||
| @UIApplicationMain | ||
| class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
|
||
| var window: UIWindow? | ||
|
|
||
|
|
||
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | ||
| // Override point for customization after application launch. | ||
| return true | ||
| } | ||
|
|
||
| func applicationWillResignActive(_ application: UIApplication) { | ||
| // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | ||
| // Use this method to pause ongoing tasks, disable timers, and 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:. | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
| @@ -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" | ||
| } | ||
| } |
| @@ -0,0 +1,27 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
| <dependencies> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/> | ||
| <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
| </dependencies> | ||
| <scenes> | ||
| <!--View Controller--> | ||
| <scene sceneID="EHf-IW-A2E"> | ||
| <objects> | ||
| <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
| <layoutGuides> | ||
| <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> | ||
| <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> | ||
| </layoutGuides> | ||
| <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
| </view> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| <point key="canvasLocation" x="53" y="375"/> | ||
| </scene> | ||
| </scenes> | ||
| </document> |
| @@ -0,0 +1,115 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="16A201w" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> | ||
| <dependencies> | ||
| <deployment identifier="iOS"/> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> | ||
| <capability name="Aspect ratio constraints" minToolsVersion="5.1"/> | ||
| <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> | ||
| <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
| </dependencies> | ||
| <scenes> | ||
| <!--View Controller--> | ||
| <scene sceneID="tne-QT-ifu"> | ||
| <objects> | ||
| <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="HelloJson" customModuleProvider="target" sceneMemberID="viewController"> | ||
| <layoutGuides> | ||
| <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | ||
| <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | ||
| </layoutGuides> | ||
| <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <subviews> | ||
| <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Ip-rQ-Nbp"> | ||
| <subviews> | ||
| <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="5AG-zh-F9U"> | ||
| <color key="backgroundColor" red="1" green="1" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
| <constraints> | ||
| <constraint firstAttribute="width" secondItem="5AG-zh-F9U" secondAttribute="height" multiplier="1:1" id="jfT-lw-QPc"/> | ||
| </constraints> | ||
| </imageView> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Denny Cheng" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7Oq-Jd-Joi"> | ||
| <constraints> | ||
| <constraint firstAttribute="height" constant="30" id="DwZ-SB-bLp"/> | ||
| </constraints> | ||
| <fontDescription key="fontDescription" type="system" pointSize="22"/> | ||
| <nil key="textColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| </subviews> | ||
| <color key="backgroundColor" red="0.81364461613185513" green="0.12536178829957778" blue="0.49493004536933216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
| <constraints> | ||
| <constraint firstItem="7Oq-Jd-Joi" firstAttribute="top" secondItem="5AG-zh-F9U" secondAttribute="bottom" constant="27.5" id="1nr-FH-5vD"/> | ||
| <constraint firstItem="7Oq-Jd-Joi" firstAttribute="width" secondItem="5AG-zh-F9U" secondAttribute="width" id="M0o-GC-ebW"/> | ||
| <constraint firstItem="5AG-zh-F9U" firstAttribute="centerX" secondItem="6Ip-rQ-Nbp" secondAttribute="centerX" id="N6F-Kl-ou7"/> | ||
| <constraint firstItem="7Oq-Jd-Joi" firstAttribute="centerX" secondItem="5AG-zh-F9U" secondAttribute="centerX" id="WjI-Ap-zRb"/> | ||
| <constraint firstItem="5AG-zh-F9U" firstAttribute="centerY" secondItem="6Ip-rQ-Nbp" secondAttribute="centerY" id="jEs-J9-aKu"/> | ||
| <constraint firstItem="5AG-zh-F9U" firstAttribute="height" secondItem="6Ip-rQ-Nbp" secondAttribute="height" multiplier="1:2" id="uEd-1P-VJO"/> | ||
| </constraints> | ||
| </view> | ||
| <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6be-W6-aJk"> | ||
| <connections> | ||
| <segue destination="2fL-Ac-NcP" kind="embed" id="hUt-Vg-rLp"/> | ||
| </connections> | ||
| </containerView> | ||
| </subviews> | ||
| <color key="backgroundColor" red="0.50196081400000003" green="0.0" blue="0.25098040700000002" alpha="1" colorSpace="calibratedRGB"/> | ||
| <constraints> | ||
| <constraint firstItem="6Ip-rQ-Nbp" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="20" id="1Ko-4u-GLw"/> | ||
| <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="6be-W6-aJk" secondAttribute="bottom" id="9FN-lZ-Lj0"/> | ||
| <constraint firstItem="6be-W6-aJk" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="G4N-au-KSZ"/> | ||
| <constraint firstAttribute="trailing" secondItem="6Ip-rQ-Nbp" secondAttribute="trailing" id="KuZ-Gh-GkC"/> | ||
| <constraint firstAttribute="trailing" secondItem="6be-W6-aJk" secondAttribute="trailing" id="Pmn-pa-mzo"/> | ||
| <constraint firstItem="6Ip-rQ-Nbp" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="bTk-dd-ScY"/> | ||
| <constraint firstItem="6be-W6-aJk" firstAttribute="top" secondItem="6Ip-rQ-Nbp" secondAttribute="bottom" id="m29-iI-LlZ"/> | ||
| <constraint firstItem="6Ip-rQ-Nbp" firstAttribute="height" secondItem="8bC-Xf-vdC" secondAttribute="height" multiplier="1:2" id="zkJ-Ul-zIP"/> | ||
| </constraints> | ||
| </view> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| <point key="canvasLocation" x="136.80000000000001" y="138.98050974512745"/> | ||
| </scene> | ||
| <!--Table View Controller--> | ||
| <scene sceneID="VVa-NB-aM9"> | ||
| <objects> | ||
| <tableViewController id="2fL-Ac-NcP" sceneMemberID="viewController"> | ||
| <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="YUC-6B-aUg"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="293"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> | ||
| <prototypes> | ||
| <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="eEp-qm-Whb"> | ||
| <rect key="frame" x="0.0" y="28" width="375" height="44"/> | ||
| <autoresizingMask key="autoresizingMask"/> | ||
| <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="eEp-qm-Whb" id="84c-cd-dJT"> | ||
| <frame key="frameInset" width="375" height="43"/> | ||
| <autoresizingMask key="autoresizingMask"/> | ||
| </tableViewCellContentView> | ||
| </tableViewCell> | ||
| </prototypes> | ||
| <connections> | ||
| <outlet property="dataSource" destination="2fL-Ac-NcP" id="gcd-hT-aUl"/> | ||
| <outlet property="delegate" destination="2fL-Ac-NcP" id="eu3-l1-oce"/> | ||
| </connections> | ||
| </tableView> | ||
| </tableViewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="Imf-Fk-Dda" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| <point key="canvasLocation" x="956" y="383"/> | ||
| </scene> | ||
| <!--View Controller--> | ||
| <scene sceneID="kaH-hP-asO"> | ||
| <objects> | ||
| <viewController id="0PF-GV-faG" sceneMemberID="viewController"> | ||
| <view key="view" contentMode="scaleToFill" id="APH-qL-vN7"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> | ||
| </view> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="q5a-V5-v8M" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| </scene> | ||
| </scenes> | ||
| </document> |
| @@ -0,0 +1,45 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>en</string> | ||
| <key>CFBundleExecutable</key> | ||
| <string>$(EXECUTABLE_NAME)</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>$(PRODUCT_NAME)</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>APPL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>1.0</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>1</string> | ||
| <key>LSRequiresIPhoneOS</key> | ||
| <true/> | ||
| <key>UILaunchStoryboardName</key> | ||
| <string>LaunchScreen</string> | ||
| <key>UIMainStoryboardFile</key> | ||
| <string>Main</string> | ||
| <key>UIRequiredDeviceCapabilities</key> | ||
| <array> | ||
| <string>armv7</string> | ||
| </array> | ||
| <key>UISupportedInterfaceOrientations</key> | ||
| <array> | ||
| <string>UIInterfaceOrientationPortrait</string> | ||
| <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| <string>UIInterfaceOrientationLandscapeRight</string> | ||
| </array> | ||
| <key>UISupportedInterfaceOrientations~ipad</key> | ||
| <array> | ||
| <string>UIInterfaceOrientationPortrait</string> | ||
| <string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
| <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| <string>UIInterfaceOrientationLandscapeRight</string> | ||
| </array> | ||
| </dict> | ||
| </plist> |
| @@ -0,0 +1,14 @@ | ||
| // | ||
| // Person.swift | ||
| // HelloJson | ||
| // | ||
| // Created by denny on 10/14/16. | ||
| // Copyright © 2016 denny. All rights reserved. | ||
| // | ||
| struct Person{ | ||
| var name:String | ||
| var email:String | ||
| var number:String | ||
| var image:String | ||
| } |
| @@ -0,0 +1,31 @@ | ||
| // | ||
| // ViewController.swift | ||
| // HelloJson | ||
| // | ||
| // Created by denny on 10/14/16. | ||
| // Copyright © 2016 denny. 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. | ||
| let somePerson = Person(name: "David", email: "abc@yahoo.com", number: "123-456-789", image: "http://jjj.jpg") | ||
| setInfo(person: somePerson) | ||
| } | ||
|
|
||
| func setInfo(person:Person){ | ||
|
|
||
| } | ||
|
|
||
| override func didReceiveMemoryWarning() { | ||
| super.didReceiveMemoryWarning() | ||
| // Dispose of any resources that can be recreated. | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
| @@ -0,0 +1,36 @@ | ||
| // | ||
| // HelloJsonTests.swift | ||
| // HelloJsonTests | ||
| // | ||
| // Created by denny on 10/14/16. | ||
| // Copyright © 2016 denny. All rights reserved. | ||
| // | ||
| import XCTest | ||
| @testable import HelloJson | ||
|
|
||
| class HelloJsonTests: XCTestCase { | ||
|
|
||
| override func setUp() { | ||
| super.setUp() | ||
| // Put setup code here. This method is called before the invocation of each test method in the class. | ||
| } | ||
|
|
||
| override func tearDown() { | ||
| // Put teardown code here. This method is called after the invocation of each test method in the class. | ||
| super.tearDown() | ||
| } | ||
|
|
||
| func testExample() { | ||
| // This is an example of a functional test case. | ||
| // Use XCTAssert and related functions to verify your tests produce the correct results. | ||
| } | ||
|
|
||
| func testPerformanceExample() { | ||
| // This is an example of a performance test case. | ||
| self.measure { | ||
| // Put the code you want to measure the time of here. | ||
| } | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,22 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>en</string> | ||
| <key>CFBundleExecutable</key> | ||
| <string>$(EXECUTABLE_NAME)</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>$(PRODUCT_NAME)</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>BNDL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>1.0</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>1</string> | ||
| </dict> | ||
| </plist> |
| @@ -0,0 +1,36 @@ | ||
| // | ||
| // HelloJsonUITests.swift | ||
| // HelloJsonUITests | ||
| // | ||
| // Created by denny on 10/14/16. | ||
| // Copyright © 2016 denny. All rights reserved. | ||
| // | ||
| import XCTest | ||
|
|
||
| class HelloJsonUITests: XCTestCase { | ||
|
|
||
| override func setUp() { | ||
| super.setUp() | ||
|
|
||
| // Put setup code here. This method is called before the invocation of each test method in the class. | ||
| // In UI tests it is usually best to stop immediately when a failure occurs. | ||
| continueAfterFailure = false | ||
| // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. | ||
| XCUIApplication().launch() | ||
|
|
||
| // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. | ||
| } | ||
|
|
||
| override func tearDown() { | ||
| // Put teardown code here. This method is called after the invocation of each test method in the class. | ||
| super.tearDown() | ||
| } | ||
|
|
||
| func testExample() { | ||
| // Use recording to get started writing UI tests. | ||
| // Use XCTAssert and related functions to verify your tests produce the correct results. | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,22 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>en</string> | ||
| <key>CFBundleExecutable</key> | ||
| <string>$(EXECUTABLE_NAME)</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>$(PRODUCT_NAME)</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>BNDL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>1.0</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>1</string> | ||
| </dict> | ||
| </plist> |