Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Segue
- reduce()
- xib
- uisearchbar
- 클론코딩
- 알고리즘
- 코딩테스트
- 싱글톤
- uikit
- alamofire
- github
- replacesubrange()
- suffix()
- zip()
- tableView
- String()
- Info.plist
- components()
- Autolayout
- MVC
- 대문자소문자
- 코드업 파이썬 기초 100제
- swift
- GIT
- 프로그래머스
- 라이징캠프
- prefix()
- joined()
- IOS
- API
Archives
- Today
- Total
목록xib (1)
Daeng iOS

테이블뷰 셀을 xib로 연결했을 때 터치이벤트 구현하는 방법을 정리하려고 합니다~! 먼저 화면전환을 segue로 연결하고 Attributes inspector 에서 Identifier 을 지정해준다 [테이블뷰가 있는 컨트롤러] func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { //터치이벤트 performSegue(withIdentifier: "detail", sender: indexPath.row) } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "detail"{ let destination = ..
IOS/UIKit
2022. 12. 2. 22:26