Skip to content

Commit

Permalink
[ADD] #153 수정 뷰들 설정 뷰와 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Mar 1, 2022
1 parent c77ce07 commit 3fccc01
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
<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"/>
Expand All @@ -24,6 +24,36 @@
</objects>
<point key="canvasLocation" x="72" y="94"/>
</scene>
<!--Change ImageVC-->
<scene sceneID="wFH-w6-zCs">
<objects>
<viewController storyboardIdentifier="ChangeImageVC" id="p5b-mR-vak" customClass="ChangeImageVC" customModule="ChaRo_iOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Yu7-U2-6Ke">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="JUn-nH-aNX"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4qI-lY-1xd" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1028" y="94"/>
</scene>
<!--Change PasswordVC-->
<scene sceneID="2uK-Ig-YAN">
<objects>
<viewController storyboardIdentifier="ChangePasswordVC" id="xGz-nD-xAd" customClass="ChangePasswordVC" customModule="ChaRo_iOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="6vN-Wk-nfx">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="lF9-0m-z30"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="5q9-CD-SOO" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1028" y="818"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import UIKit

class ChangeImageVC: UIViewController {


static let identifier = "ChangeImageVC"

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import UIKit

class ChangePasswordVC: UIViewController {

static let identifier = "ChangePasswordVC"

override func viewDidLoad() {
super.viewDidLoad()

Expand Down
24 changes: 24 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SettingScene/SettingVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,30 @@ extension SettingVC: UITableViewDataSource {
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print(indexPath)

switch indexPath.section {
case 0:
break

case 1:
break

case 2:
if indexPath.row == 0 {
guard let vc = self.storyboard?.instantiateViewController(withIdentifier: ChangeImageVC.identifier) else { return }
self.navigationController?.pushViewController(vc, animated: true)
} else {
guard let vc = self.storyboard?.instantiateViewController(withIdentifier: ChangePasswordVC.identifier) else { return }
self.navigationController?.pushViewController(vc, animated: true)
}
break

default:
break


}

}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 60
Expand Down

0 comments on commit 3fccc01

Please sign in to comment.