diff --git a/Pendu/Base.lproj/Main.storyboard b/Pendu/Base.lproj/Main.storyboard index b84685f9ad2a4e34e7e107dfbafa4f35b09a6903..d75c7471a6600fba234cad794db7bb7136c438b6 100644 --- a/Pendu/Base.lproj/Main.storyboard +++ b/Pendu/Base.lproj/Main.storyboard @@ -49,7 +49,7 @@ <color key="baseBackgroundColor" systemColor="systemYellowColor"/> </buttonConfiguration> <connections> - <action selector="AfficherClassement:" destination="BYZ-38-t0r" eventType="touchUpInside" id="up5-UE-mBH"/> + <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"> @@ -86,7 +86,7 @@ <color key="baseBackgroundColor" systemColor="systemYellowColor"/> </buttonConfiguration> <connections> - <action selector="AfficherClassement:" destination="BYZ-38-t0r" eventType="touchUpInside" id="7El-p9-KHs"/> + <segue destination="aQz-4m-G2v" kind="show" id="UXc-h0-Uzj"/> </connections> </button> </subviews> @@ -97,7 +97,6 @@ <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> @@ -105,6 +104,29 @@ </objects> <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> <!--Partie--> <scene sceneID="LqT-Za-AMF"> <objects> @@ -551,6 +573,29 @@ </objects> <point key="canvasLocation" x="1113.0434782608697" y="72.991071428571431"/> </scene> + <!--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> diff --git a/Pendu/ViewController.swift b/Pendu/ViewController.swift index 81202d680c51554088e55fdae687a8c10b88bbb4..91816c0bf61d0da091d43da9639cfa7efc30e641 100644 --- a/Pendu/ViewController.swift +++ b/Pendu/ViewController.swift @@ -24,12 +24,19 @@ extension UIView { 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"] let gameEngine : GameEngine = GameEngine() @@ -48,7 +55,7 @@ class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDele } } - + @IBAction func LancerPartie(_ sender: Any) { guard let pseudo = pseudoinput.text else { return