Commit a0794c41 authored by xlu's avatar xlu

added tableview on restaurant

parents
File added
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?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>iostableassignment.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
//
// AppDelegate.swift
// iostableassignment
//
// Created by xlu on 5/23/22.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "barrafina.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "barrafina@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "barrafina@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "bourkestreetbakery.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "bourkestreetbakery@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "bourkestreetbakery@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "cafedeadend.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "cafedeadend@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "cafedeadend@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "cafeloisl.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "cafeloisl@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "cafeloisl@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "cafelore.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "cafelore@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "cafelore@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "cask.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "cask@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "cask@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "confessional.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "confessional@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "confessional@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "donostia.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "donostia@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "donostia@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "fiveleaves.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "fiveleaves@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "fiveleaves@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "forkee.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "forkee@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "forkee@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "graham.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "graham@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "graham@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "haigh.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "haigh@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "haigh@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "homei.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "homei@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "homei@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "palomino.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "palomino@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "palomino@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "petiteoyster.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "petiteoyster@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "petiteoyster@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "posatelier.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "posatelier@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "posatelier@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "restaurant.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "restaurant@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "restaurant@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "royaloak.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "royaloak@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "royaloak@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "teakha.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "teakha@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "teakha@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "traif.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "traif@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "traif@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "upstate.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "upstate@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "upstate@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "waffleandwolf.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "waffleandwolf@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "waffleandwolf@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<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">
<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" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</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>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<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="iostableassignment" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="5DO-xm-NwJ">
<rect key="frame" x="0.0" y="44" width="414" height="818"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="democell" rowHeight="178" id="hxf-p4-xp4" customClass="DemoTableViewCell" customModule="iostableassignment" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="178"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="hxf-p4-xp4" id="6tL-vw-Yy6">
<rect key="frame" x="0.0" y="0.0" width="414" height="178"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="had-CH-SSI">
<rect key="frame" x="30" y="10" width="197" height="158"/>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="had-CH-SSI" secondAttribute="bottom" constant="10" id="7Nn-6I-6bX"/>
<constraint firstAttribute="trailing" secondItem="had-CH-SSI" secondAttribute="trailing" constant="187" id="BPC-Qc-JIx"/>
<constraint firstItem="had-CH-SSI" firstAttribute="leading" secondItem="6tL-vw-Yy6" secondAttribute="leading" constant="30" id="apg-Ys-tBG"/>
<constraint firstItem="had-CH-SSI" firstAttribute="top" secondItem="6tL-vw-Yy6" secondAttribute="top" constant="10" id="qAt-HR-UG7"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="demoImageView" destination="had-CH-SSI" id="4Cl-b9-kAp"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="BYZ-38-t0r" id="dsS-j8-i09"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="5DO-xm-NwJ" secondAttribute="bottom" id="LSu-Ph-13W"/>
<constraint firstItem="5DO-xm-NwJ" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="Sg9-q9-UL3"/>
<constraint firstItem="5DO-xm-NwJ" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="veG-nF-W0F"/>
<constraint firstItem="5DO-xm-NwJ" firstAttribute="trailing" secondItem="6Tk-OE-BBY" secondAttribute="trailing" id="zS4-RH-LpD"/>
</constraints>
</view>
<connections>
<outlet property="tableView" destination="5DO-xm-NwJ" id="THA-GF-Aj5"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="137.68115942028987" y="88.392857142857139"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment