ragdoll-cat

  • 홈
  • 태그
  • 방명록

refresh 1

UIRefreshControl: UITableView와 UICollectionView에서 아래로 당겨 새로고침 하기

사용법1. UIRefreshControl 초기화 및 설정:let refreshControl = UIRefreshControl()refreshControl.addTarget(self, action: #selector(handleRefresh), for: .valueChanged) 2. 테이블 뷰 또는 컬렉션 뷰에 추가:UITableView의 경우:tableView.refreshControl = refreshControlUICollectionView의 경우:collectionView.refreshControl = refreshControl 새로고침 동작 처리 메서드 구현 예시@objc private func pullToRefresh() { self.collectionView.reloadData() Dis..

카테고리 없음 2025.02.04
이전
1
다음
더보기
프로필사진

ragdoll-cat

ragdoll-cat 님의 블로그 입니다.

  • 분류 전체보기 (28)

Tag

foreach, IOS, Throttle, Decodable, Keyboard, refresh, Grid, identifierble, swift testing, wkwebview, TabView, griditem, sfsafariviewcontroller, CodingKeys, scrollview, debounce, form, list, tabviewstyle, WWDC, refreshable, uikit, Xcode, swift, Animation, XCTest, SwiftUI, LazyVGrid, lazyhgrid, webview,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바