Skip to content

Commit

Permalink
✨ [Feat] homeVC -> loginVC 넘어가기 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Dec 24, 2021
1 parent b3307d9 commit af941f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Binary file not shown.
5 changes: 4 additions & 1 deletion DalTube/DalTube/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@
<constraint firstAttribute="width" secondItem="ci9-Ff-oDs" secondAttribute="height" multiplier="1:1" id="lMu-ec-j2s"/>
</constraints>
<state key="normal" image="wesoptProfile"/>
<connections>
<action selector="touchUpToGoToLoginVIew:" destination="nXU-8R-qcA" eventType="touchUpInside" id="i7z-7d-m8v"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IhC-hn-1Gt">
<rect key="frame" x="315" y="9" width="32" height="32"/>
Expand Down Expand Up @@ -538,7 +541,7 @@
<!--Navigation Controller-->
<scene sceneID="z3z-Jr-yx8">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" navigationBarHidden="YES" id="2Ge-kj-wQk" sceneMemberID="viewController">
<navigationController storyboardIdentifier="NavigationController" automaticallyAdjustsScrollViewInsets="NO" navigationBarHidden="YES" id="2Ge-kj-wQk" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="r0j-np-WUZ">
<autoresizingMask key="autoresizingMask"/>
Expand Down
8 changes: 8 additions & 0 deletions DalTube/DalTube/Home/HomeVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ class HomeVC: UIViewController {
tagCollectionView.delegate = self
}

@IBAction func touchUpToGoToLoginVIew(_ sender: Any) {
guard let navigationVC = self.storyboard?.instantiateViewController(withIdentifier: "NavigationController") else {return}

navigationVC.modalPresentationStyle = .fullScreen
self.present(navigationVC, animated: true, completion: nil)
}


func registerXib(){
homeTableView.register(UINib(nibName: HomeTableViewCell.identifier, bundle: nil), forCellReuseIdentifier: HomeTableViewCell.identifier)

Expand Down

0 comments on commit af941f4

Please sign in to comment.