Skip to content
Snippets Groups Projects
Commit 11c960f7 authored by Nathan's avatar Nathan
Browse files

Merge remote-tracking branch 'refs/remotes/origin/main'

Conflicts:
	Pendu/Base.lproj/Main.storyboard
parents 3328020f 79adf337
No related branches found
No related tags found
No related merge requests found
File added
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="vyD-kt-VPW">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<device id="retina6_0" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
......@@ -13,68 +13,82 @@
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Pendu" 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"/>
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="iRK-mL-RC3">
<rect key="frame" x="106" y="400" width="184" height="34"/>
<textField opaque="NO" alpha="0.84999999999999998" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Player name" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="iRK-mL-RC3">
<rect key="frame" x="28" y="267" width="335" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<pickerView contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="LNU-nY-Uyk">
<rect key="frame" x="0.0" y="565" width="414" height="162"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
</pickerView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Choisissez un theme" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dAa-qb-1JB">
<rect key="frame" x="119" y="484" width="158" height="21"/>
<segmentedControl opaque="NO" alpha="0.84999999999999998" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="NvB-ZN-BTJ">
<rect key="frame" x="28" y="350" width="335" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="choissisez votre pseudo" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="doS-CU-ueI">
<rect key="frame" x="106" y="351" width="184" height="21"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<segments>
<segment title="Easy"/>
<segment title="Hard"/>
</segments>
</segmentedControl>
<button contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lae-hh-psQ">
<rect key="frame" x="28" y="102" width="130" height="39"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<color key="tintColor" systemColor="labelColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="gray">
<attributedString key="attributedTitle">
<fragment content="My score">
<attributes>
<font key="NSFont" size="18" name="Helvetica"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<color key="baseBackgroundColor" red="0.91485461992086825" green="0.72546671504217852" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<segue destination="NpT-5q-8iC" kind="show" id="0UP-m3-NzU"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Rxj-5T-1Nw">
<rect key="frame" x="117" y="720" width="181" height="54"/>
<rect key="frame" x="28" y="621" width="335" height="39"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="Lancer Partie"/>
<buttonConfiguration key="configuration" style="filled" title="Start game">
<fontDescription key="titleFontDescription" style="UICTFontTextStyleTitle3"/>
<color key="baseBackgroundColor" red="0.16242280080033861" green="0.61513349139014162" blue="0.69163225280749385" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="LancerPartie:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ccG-OM-Emx"/>
<segue destination="SII-Cn-Tul" kind="show" identifier="DeAccueilAJeu" id="GRR-mn-viL"/>
</connections>
</button>
<segmentedControl opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="NvB-ZN-BTJ">
<rect key="frame" x="144" y="526" width="109" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<segments>
<segment title="Facile"/>
<segment title="Hard"/>
</segments>
</segmentedControl>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lae-hh-psQ">
<rect key="frame" x="119" y="284" width="160" height="31"/>
<pickerView alpha="0.84999999999999998" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="LNU-nY-Uyk">
<rect key="frame" x="0.0" y="424" width="390" height="162"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
</pickerView>
<button contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4Oq-OS-e2C">
<rect key="frame" x="233" y="102" width="130" height="39"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" systemColor="labelColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="gray">
<attributedString key="attributedTitle">
<fragment content="Classement"/>
<fragment content="Ranking">
<attributes>
<font key="NSFont" size="18" name="Helvetica"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<color key="baseBackgroundColor" red="0.91485461990000005" green="0.72546671500000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="AfficherClassement:" destination="BYZ-38-t0r" eventType="touchUpInside" id="up5-UE-mBH"/>
<segue destination="aQz-4m-G2v" kind="show" id="UXc-h0-Uzj"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="hqdefault.jpeg" translatesAutoresizingMaskIntoConstraints="NO" id="pv2-ee-Khp">
<rect key="frame" x="0.0" y="-43" width="414" height="319"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
......@@ -83,32 +97,54 @@
<connections>
<outlet property="choixNiv" destination="NvB-ZN-BTJ" id="fAA-St-woR"/>
<outlet property="choixTheme" destination="LNU-nY-Uyk" id="Fff-Y6-Z8A"/>
<outlet property="classement" destination="lae-hh-psQ" id="YEG-ma-abh"/>
<outlet property="pseudoinput" destination="iRK-mL-RC3" id="v77-OK-9QK"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="276.81159420289856" y="72.991071428571431"/>
<point key="canvasLocation" x="275.38461538461536" y="72.511848341232223"/>
</scene>
<!--View Controller-->
<scene sceneID="l4M-7k-UUe">
<objects>
<viewController id="aQz-4m-G2v" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="jFk-yG-B96">
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="reH-wE-BOx">
<rect key="frame" x="37" y="138" width="312" height="561"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="N0d-E2-OLY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<navigationItem key="navigationItem" id="MWc-6A-tgg"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="zoG-p9-fvl" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1112" y="-680"/>
</scene>
<!--Game View Controller-->
<!--Partie-->
<scene sceneID="LqT-Za-AMF">
<objects>
<viewController id="SII-Cn-Tul" customClass="GameViewController" customModule="Pendu" customModuleProvider="target" sceneMemberID="viewController">
<viewController title="Partie" id="SII-Cn-Tul" customClass="GameViewController" customModule="Pendu" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="lA6-ta-b6b">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView autoresizesSubviews="NO" opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="nPm-hO-jSU">
<rect key="frame" x="18" y="674" width="378" height="117"/>
<rect key="frame" x="18" y="674" width="354" height="117"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="6" translatesAutoresizingMaskIntoConstraints="NO" id="Lxn-jn-iUp">
<rect key="frame" x="0.0" y="0.0" width="378" height="31"/>
<rect key="frame" x="0.0" y="0.0" width="354" height="31"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K1J-8m-J9K">
<rect key="frame" x="0.0" y="0.0" width="37" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="37" id="gd8-7P-C88"/>
<constraint firstAttribute="width" constant="37" id="nU8-EW-BQp"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<buttonConfiguration key="configuration" style="filled" title="A">
......@@ -119,9 +155,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3y4-VD-M0Z">
<rect key="frame" x="43" y="0.0" width="36.5" height="31"/>
<rect key="frame" x="43" y="0.0" width="36.666666666666657" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="36.5" id="7jw-dM-OQN"/>
<constraint firstAttribute="width" constant="36.5" id="gwE-ee-OW4"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -133,9 +169,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="A5I-Mg-2Ou">
<rect key="frame" x="85.5" y="0.0" width="37" height="31"/>
<rect key="frame" x="85.666666666666671" y="0.0" width="37" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="37" id="a2K-GN-58Q"/>
<constraint firstAttribute="width" constant="37" id="08g-4b-Pf0"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -147,9 +183,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zO4-1x-xRr">
<rect key="frame" x="128.5" y="0.0" width="36.5" height="31"/>
<rect key="frame" x="128.66666666666666" y="0.0" width="36.333333333333343" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="36.5" id="SIQ-A2-etP"/>
<constraint firstAttribute="width" constant="36.5" id="Au1-0z-JiC"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -161,7 +197,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VI7-Hb-gxf">
<rect key="frame" x="171" y="0.0" width="36" height="31"/>
<rect key="frame" x="171" y="0.0" width="12" height="31"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="T">
......@@ -172,9 +208,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dUl-j1-UPC">
<rect key="frame" x="213" y="0.0" width="36.5" height="31"/>
<rect key="frame" x="189" y="0.0" width="36.666666666666657" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="36.5" id="5Pv-ks-nnB"/>
<constraint firstAttribute="width" constant="36.5" id="wNM-kd-Ozm"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -186,9 +222,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eT3-eI-h6F">
<rect key="frame" x="255.5" y="0.0" width="37" height="31"/>
<rect key="frame" x="231.66666666666666" y="0.0" width="36.999999999999972" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="37" id="sY3-rd-UWP"/>
<constraint firstAttribute="width" constant="37" id="rQg-Xn-Ap9"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -200,9 +236,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3Vi-3e-hIm">
<rect key="frame" x="298.5" y="0.0" width="36.5" height="31"/>
<rect key="frame" x="274.66666666666669" y="0.0" width="36.333333333333314" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="36.5" id="SCI-TO-f77"/>
<constraint firstAttribute="width" constant="36.5" id="T3K-oO-Awp"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -214,7 +250,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dwK-xf-gfo">
<rect key="frame" x="341" y="0.0" width="37" height="31"/>
<rect key="frame" x="317" y="0.0" width="37" height="31"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="O">
......@@ -226,17 +262,17 @@
</button>
</subviews>
<constraints>
<constraint firstItem="VI7-Hb-gxf" firstAttribute="centerX" secondItem="Lxn-jn-iUp" secondAttribute="centerX" id="DLm-Wh-GOE"/>
<constraint firstItem="K1J-8m-J9K" firstAttribute="baseline" secondItem="3y4-VD-M0Z" secondAttribute="firstBaseline" id="xzf-b4-DuM"/>
<constraint firstItem="K1J-8m-J9K" firstAttribute="baseline" secondItem="3y4-VD-M0Z" secondAttribute="firstBaseline" id="9Mq-sP-wDV"/>
<constraint firstItem="VI7-Hb-gxf" firstAttribute="centerX" secondItem="Lxn-jn-iUp" secondAttribute="centerX" id="IW0-l5-udR"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="iGY-z0-cnq">
<rect key="frame" x="0.0" y="43" width="378" height="31"/>
<rect key="frame" x="0.0" y="43" width="354" height="31"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VcP-Ew-YEz">
<rect key="frame" x="0.0" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="VJa-PE-55l"/>
<constraint firstAttribute="width" constant="35" id="sUt-Dd-SGf"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -250,7 +286,7 @@
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5oN-oV-uOo">
<rect key="frame" x="43" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="KWo-wL-9bp"/>
<constraint firstAttribute="width" constant="35" id="vyp-KO-f6t"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -262,10 +298,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pbT-fO-DaV">
<rect key="frame" x="86" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="BXs-Nt-LaQ"/>
</constraints>
<rect key="frame" x="86" y="0.0" width="34" height="31"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="S">
......@@ -276,9 +309,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9ob-tq-FGc">
<rect key="frame" x="129" y="0.0" width="35" height="31"/>
<rect key="frame" x="128" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="FEs-Qv-SQc"/>
<constraint firstAttribute="width" constant="35" id="uas-qT-m7D"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -290,7 +323,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xVA-v4-SeY">
<rect key="frame" x="172" y="0.0" width="34" height="31"/>
<rect key="frame" x="171" y="0.0" width="12" height="31"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="F">
......@@ -301,9 +334,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lFV-Ph-7oH">
<rect key="frame" x="214" y="0.0" width="35" height="31"/>
<rect key="frame" x="191" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="SCs-eE-KXf"/>
<constraint firstAttribute="width" constant="35" id="PAi-d0-m1T"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -315,9 +348,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gfF-8E-ztz">
<rect key="frame" x="257" y="0.0" width="35" height="31"/>
<rect key="frame" x="234" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="OYl-j3-cf7"/>
<constraint firstAttribute="width" constant="35" id="wzM-tZ-pzw"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -328,8 +361,11 @@
<action selector="H_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="yfb-FP-5oM"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9Hg-a5-lyX">
<rect key="frame" x="300" y="0.0" width="35" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9Hg-a5-lyX">
<rect key="frame" x="277" y="0.0" width="35" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="3eq-2n-Zh7"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="J">
......@@ -339,8 +375,11 @@
<action selector="J_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="bGT-pq-EGZ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SRC-kg-I9t">
<rect key="frame" x="343" y="0.0" width="35" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SRC-kg-I9t">
<rect key="frame" x="320" y="0.0" width="34" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="34" id="Fzp-gB-C60"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="K">
......@@ -352,15 +391,19 @@
</button>
</subviews>
<constraints>
<constraint firstItem="VcP-Ew-YEz" firstAttribute="baseline" secondItem="5oN-oV-uOo" secondAttribute="firstBaseline" id="4g7-Vk-Ba2"/>
<constraint firstItem="xVA-v4-SeY" firstAttribute="centerX" secondItem="iGY-z0-cnq" secondAttribute="centerX" id="z5a-9w-kcr"/>
<constraint firstItem="xVA-v4-SeY" firstAttribute="centerX" secondItem="iGY-z0-cnq" secondAttribute="centerX" id="35V-U4-Rzg"/>
<constraint firstItem="9ob-tq-FGc" firstAttribute="leading" secondItem="pbT-fO-DaV" secondAttribute="trailing" constant="8" id="iMq-Tq-nu2"/>
<constraint firstItem="VcP-Ew-YEz" firstAttribute="baseline" secondItem="5oN-oV-uOo" secondAttribute="firstBaseline" id="y0Q-Ny-vsi"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="2hT-k9-3se">
<rect key="frame" x="0.0" y="86" width="378" height="31"/>
<rect key="frame" x="0.0" y="86" width="354" height="31"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CiT-Ul-IXe">
<rect key="frame" x="0.0" y="0.0" width="40.5" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CiT-Ul-IXe">
<rect key="frame" x="0.0" y="0.0" width="40.666666666666664" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40.5" id="hAd-XB-8jO"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="L">
......@@ -370,8 +413,11 @@
<action selector="L_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="qL4-Ih-7GP"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="him-pb-hSO">
<rect key="frame" x="48.5" y="0.0" width="40" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="him-pb-hSO">
<rect key="frame" x="48.666666666666671" y="0.0" width="40" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="Sv9-mP-1Lk"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="M">
......@@ -381,8 +427,11 @@
<action selector="M_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="Rbj-3R-lQ8"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f86-Pv-8XU">
<rect key="frame" x="96.5" y="0.0" width="40.5" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f86-Pv-8XU">
<rect key="frame" x="96.666666666666671" y="0.0" width="40.333333333333329" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40.5" id="y8F-zR-SoZ"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="W">
......@@ -392,8 +441,11 @@
<action selector="W_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="eKF-hD-n9A"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6W-Zy-IJN">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6W-Zy-IJN">
<rect key="frame" x="145" y="0.0" width="40" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="UNr-Ew-RJI"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="X">
......@@ -403,8 +455,8 @@
<action selector="X_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="SSD-RT-NyK"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f5g-Vp-Dkm">
<rect key="frame" x="193" y="0.0" width="40.5" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f5g-Vp-Dkm">
<rect key="frame" x="193" y="0.0" width="16.666666666666657" height="31"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="C">
......@@ -414,8 +466,11 @@
<action selector="C_Action:" destination="SII-Cn-Tul" eventType="touchUpInside" id="a46-Ll-6FM"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wg8-a4-KPy">
<rect key="frame" x="241.5" y="0.0" width="40" height="31"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wg8-a4-KPy">
<rect key="frame" x="217.66666666666666" y="0.0" width="39.999999999999972" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="1G0-6C-igj"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="V">
......@@ -426,9 +481,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ErA-af-qSV">
<rect key="frame" x="289.5" y="0.0" width="40" height="31"/>
<rect key="frame" x="265.66666666666669" y="0.0" width="40" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="vSl-wV-Y8M"/>
<constraint firstAttribute="width" constant="40" id="eeV-Eq-QWY"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -440,9 +495,9 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JoJ-to-kUH">
<rect key="frame" x="337.5" y="0.0" width="40.5" height="31"/>
<rect key="frame" x="313.66666666666669" y="0.0" width="40.333333333333314" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="40.5" id="4SU-RY-yB0"/>
<constraint firstAttribute="width" constant="40.5" id="kz1-9t-uCY"/>
</constraints>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
......@@ -455,44 +510,30 @@
</button>
</subviews>
<constraints>
<constraint firstItem="ErA-af-qSV" firstAttribute="baseline" secondItem="wg8-a4-KPy" secondAttribute="firstBaseline" id="BGf-en-Iry"/>
<constraint firstItem="ErA-af-qSV" firstAttribute="baseline" secondItem="wg8-a4-KPy" secondAttribute="firstBaseline" id="Jvt-zT-kdA"/>
</constraints>
</stackView>
</subviews>
<rect key="contentStretch" x="1" y="1" width="1" height="1"/>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YK4-Bp-YJg">
<rect key="frame" x="20" y="606" width="376" height="60"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="PWP-pN-cfl"/>
</constraints>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YK4-Bp-YJg">
<rect key="frame" x="16" y="606" width="356" height="60"/>
<fontDescription key="fontDescription" type="system" pointSize="30"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="b0q-r0-Lec">
<rect key="frame" x="286" y="107" width="128" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="9Cj-u8-X5d"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="uHe-Zh-6OV"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="tintColor" systemColor="opaqueSeparatorColor"/>
<constraints>
<constraint firstItem="b0q-r0-Lec" firstAttribute="leading" secondItem="uHe-Zh-6OV" secondAttribute="leading" constant="286" id="HZI-1h-KMP"/>
<constraint firstItem="YK4-Bp-YJg" firstAttribute="centerX" secondItem="nPm-hO-jSU" secondAttribute="centerX" id="LiK-Qo-mvb"/>
<constraint firstItem="uHe-Zh-6OV" firstAttribute="bottom" secondItem="nPm-hO-jSU" secondAttribute="bottom" constant="22" id="SjP-eM-mUa"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="leading" secondItem="uHe-Zh-6OV" secondAttribute="leading" constant="18" id="Sxx-8n-kFl"/>
<constraint firstItem="b0q-r0-Lec" firstAttribute="top" secondItem="uHe-Zh-6OV" secondAttribute="top" constant="19" id="ndW-at-4Wu"/>
<constraint firstItem="YK4-Bp-YJg" firstAttribute="leading" secondItem="lA6-ta-b6b" secondAttribute="leadingMargin" id="qJE-Ri-fkh"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="top" secondItem="YK4-Bp-YJg" secondAttribute="bottom" constant="8" id="tyX-oo-IMe"/>
<constraint firstItem="uHe-Zh-6OV" firstAttribute="trailing" secondItem="b0q-r0-Lec" secondAttribute="trailing" id="u71-I0-TTw"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="centerX" secondItem="lA6-ta-b6b" secondAttribute="centerX" id="uIT-ji-7Iv"/>
<constraint firstItem="YK4-Bp-YJg" firstAttribute="top" secondItem="uHe-Zh-6OV" secondAttribute="top" constant="518" id="0RM-e8-dUR"/>
<constraint firstItem="YK4-Bp-YJg" firstAttribute="leading" secondItem="lA6-ta-b6b" secondAttribute="leadingMargin" id="8V5-R5-D98"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="leading" secondItem="uHe-Zh-6OV" secondAttribute="leading" constant="18" id="Hxn-xs-CA2"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="top" secondItem="uHe-Zh-6OV" secondAttribute="top" constant="586" id="RCq-Wo-NQ6"/>
<constraint firstItem="YK4-Bp-YJg" firstAttribute="trailing" secondItem="nPm-hO-jSU" secondAttribute="trailing" id="gQQ-EB-9ZR"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="top" secondItem="YK4-Bp-YJg" secondAttribute="bottom" constant="8" id="gd4-GV-Rbc"/>
<constraint firstItem="nPm-hO-jSU" firstAttribute="centerX" secondItem="lA6-ta-b6b" secondAttribute="centerX" id="gx6-Zs-yWe"/>
</constraints>
</view>
<toolbarItems/>
......@@ -525,7 +566,6 @@
<outlet property="X_Button" destination="p6W-Zy-IJN" id="Sxv-Xl-26y"/>
<outlet property="Y_Button" destination="dUl-j1-UPC" id="iQo-bR-ql3"/>
<outlet property="Z_Button" destination="3y4-VD-M0Z" id="kgJ-ua-BLx"/>
<outlet property="score" destination="b0q-r0-Lec" id="L6v-7D-eE9"/>
<outlet property="wordLabel" destination="YK4-Bp-YJg" id="V2y-ee-WzG"/>
</connections>
</viewController>
......@@ -533,13 +573,36 @@
</objects>
<point key="canvasLocation" x="1113.0434782608697" y="72.991071428571431"/>
</scene>
<!--Navigation Controller-->
<!--View Controller-->
<scene sceneID="DOp-cS-lmI">
<objects>
<viewController id="NpT-5q-8iC" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="lxZ-hk-aBd">
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="6qe-0q-g54">
<rect key="frame" x="43" y="197" width="308" height="491"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="5W1-ma-4ti"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<navigationItem key="navigationItem" id="oJn-Ow-Ppk"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="lSg-hU-biK" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-369.23076923076923" y="-673.2227488151658"/>
</scene>
<!--Accueil-->
<scene sceneID="v2s-Cx-8QZ">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="vyD-kt-VPW" sceneMemberID="viewController">
<navigationController title="Accueil" automaticallyAdjustsScrollViewInsets="NO" id="vyD-kt-VPW" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="HKI-s4-KxF">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<rect key="frame" x="0.0" y="44" width="390" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
......@@ -553,7 +616,9 @@
</scene>
</scenes>
<resources>
<image name="hqdefault.jpeg" width="480" height="360"/>
<systemColor name="labelColor">
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="opaqueSeparatorColor">
<color red="0.77647058823529413" green="0.77647058823529413" blue="0.78431372549019607" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
......
import UIKit
extension UIView {
func addBackgroundAcceuil(imageName: String = "fond_acceuil.png", contentMode: UIView.ContentMode = .scaleToFill) {
// setup the UIImageView
let backgroundImageView = UIImageView(frame: UIScreen.main.bounds)
backgroundImageView.image = UIImage(named: imageName)
backgroundImageView.contentMode = contentMode
backgroundImageView.translatesAutoresizingMaskIntoConstraints = false
addSubview(backgroundImageView)
sendSubviewToBack(backgroundImageView)
// adding NSLayoutConstraints
let leadingConstraint = NSLayoutConstraint(item: backgroundImageView, attribute: .leading, relatedBy: .equal, toItem: self, attribute: .leading, multiplier: 1.0, constant: 0.0)
let trailingConstraint = NSLayoutConstraint(item: backgroundImageView, attribute: .trailing, relatedBy: .equal, toItem: self, attribute: .trailing, multiplier: 1.0, constant: 0.0)
let topConstraint = NSLayoutConstraint(item: backgroundImageView, attribute: .top, relatedBy: .equal, toItem: self, attribute: .top, multiplier: 1.0, constant: 0.0)
let bottomConstraint = NSLayoutConstraint(item: backgroundImageView, attribute: .bottom, relatedBy: .equal, toItem: self, attribute: .bottom, multiplier: 1.0, constant: 0.0)
NSLayoutConstraint.activate([leadingConstraint, trailingConstraint, topConstraint, bottomConstraint])
}
}
class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDelegate {
@IBAction func ranking(_ sender: Any) {
}
@IBAction func myScore(_ sender: Any) {
}
@IBOutlet weak var classement: UIButton!
@IBOutlet weak var pseudoinput: UITextField!
@IBOutlet weak var choixTheme: UIPickerView!
@IBOutlet weak var choixNiv: UISegmentedControl!
@IBAction func ank(_ sender: Any) {
}
var wordToGuess : String = ""
let pickerData = ["Animals", "Sports", "Food", "Cities", "Colors"]
var gameEngine : GameEngine = GameEngine()
override func viewDidLoad() {
super.viewDidLoad()
view.addBackgroundAcceuil()
choixTheme.dataSource = self
choixTheme.delegate = self
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment