감자주먹밥
close
프로필 배경
프로필 로고

감자주먹밥

  • 분류 전체보기 (83)
    • IOS (1)
      • Swift (14)
      • RxSwift (2)
      • UIKit (31)
      • SwiftUI (9)
      • Test (4)
    • 코퉤엣 (12)
    • Git (2)
    • Android (8)
  • 홈
  • 태그
  • iOS
  • Github
  • 방명록

[UIKit] Long Press ContextMenu 띄우기 (TableView & CollectionView)

TableView, CollectionView 에서 Delegate 사용iOS 13+ 부터 가능함!TableView or CollectionView는 따로 만들었다는 가정하에 Delegate를 사용하는 법만 확인 UITableViewDelegate or UICollectionViewDelegate에 있는 contextMenuConfigurationForItemsAt 함수를 정의해 만들 수 있다. 예제는 CollectionView지만 TableView도 동일하게 사용이 가능함!extension HomeViewController: UICollectionViewDelegate { func collectionView(_ collectionView: UICollectionView, contextMenuCon..

  • format_list_bulleted IOS/UIKit
  • · 2025. 3. 4.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (83)
    • IOS (1)
      • Swift (14)
      • RxSwift (2)
      • UIKit (31)
      • SwiftUI (9)
      • Test (4)
    • 코퉤엣 (12)
    • Git (2)
    • Android (8)
최근 글
인기 글
태그
  • #Kotlin
  • #swiftUI
  • #programmers
  • #ios
  • #UIKit
  • #SWIFT
  • #android
  • #tableView
  • #백준
  • #코딩테스트
최근 댓글
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바