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 | 31 |
Tags
- 싱글톤
- uiimage
- alamofire
- API
- uikit
- IOS
- tableView
- 코딩테스트
- xib
- print()
- Segue
- uisearchbar
- GIT
- components()
- replacesubrange()
- Autolayout
- swift
- 알고리즘
- github
- 라이징캠프
- MVC
- UIImageView
- 대문자소문자
- 프로그래머스
- 클론코딩
- joined()
- map()
- Info.plist
- 코드업 파이썬 기초 100제
- prefix()
Archives
- Today
- Total
목록Segue (1)
Daeng iOS
[iOS/UIKit] xib 파일로 테이블뷰 연결 후 터치이벤트&화면전환
테이블뷰 셀을 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