Skip to content

Commit

Permalink
[#68] 데이터 전달 분기 처리
Browse files Browse the repository at this point in the history
- placeholder
  • Loading branch information
Taehyeon-Kim committed Jul 22, 2022
1 parent 2c213a6 commit 9a17a8b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 8 additions & 2 deletions SeSACWeek3/SeSACWeek3/Trend/Trend.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,23 @@
<action selector="movieButtonTapped:" destination="hbV-Dz-vxr" eventType="touchUpInside" id="Udf-nG-e0o"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rFo-vv-1bB">
<button opaque="NO" tag="1" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rFo-vv-1bB">
<rect key="frame" x="186" y="96" width="61" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="드라마"/>
<connections>
<action selector="movieButtonTapped:" destination="hbV-Dz-vxr" eventType="touchUpInside" id="Lc1-zc-adq"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fzv-7z-wVB">
<button opaque="NO" tag="2" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fzv-7z-wVB">
<rect key="frame" x="269" y="96" width="49" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="도서"/>
<connections>
<action selector="movieButtonTapped:" destination="hbV-Dz-vxr" eventType="touchUpInside" id="Nzp-wg-Wq1"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
Expand Down
12 changes: 11 additions & 1 deletion SeSACWeek3/SeSACWeek3/Trend/TrendTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ class TrendTableViewController: UITableViewController {

// 2.
let viewController = storyboard.instantiateViewController(withIdentifier: BucketlistTableViewController.identifier) as! BucketlistTableViewController
viewController.placeholder = "검색할 도서를 입력해주세요."

switch sender.tag {
case 0:
viewController.placeholder = "검색할 영화를 입력해주세요."
case 1:
viewController.placeholder = "검색할 드라마를 입력해주세요."
case 2:
viewController.placeholder = "검색할 도서를 입력해주세요."
default:
fatalError()
}

let navigationController = UINavigationController(rootViewController: viewController)

Expand Down

0 comments on commit 9a17a8b

Please sign in to comment.