본문 바로가기

UIKIT/UICalendar

(3)
❌ 복수 선택할 수 있지만.. 해제는 자동으로 안되요 https://explorer89.tistory.com/389 ❓ UICalendarSelectionMultiDate에서 특정 조건에서 선택을 막기! (UI 표시 X)❓시작일, 종료일을 선택 한 후에, 다른 날짜 선택을 막을 수 있나? (UI 표시 안되게) 🚨 결론: UICalendarSelectionMultiDate에서는 선택을 즉시 해제할 방법이 없음.즉, 세 번째 날짜를 선택했을 때, UI에explorer89.tistory.com
🤔 CalendarViewDeleage를 사용하여 특정 날짜에 대한 데코레이션! CalendarViewController에서 CalendarViewDelegate를 사용하여 특정 날짜에 대한 데코레이션을 적용하려면, CalendarViewDelegate의 인스턴스를 생성하고 calendarView.delegate로 설정import UIKit// Define a calendar view delegate.class CalendarViewDelegate: NSObject, UICalendarViewDelegate { var decorations: [Date?: UICalendarView.Decoration] = [:] override init() { super.init() setupDecorations() } privat..
🤔 UICalendar 만들어보기 (오늘 날짜 표시) https://developer.apple.com/documentation/uikit/uicalendarview UICalendarView | Apple Developer DocumentationA view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.developer.apple.com 📌 설정 및 사용법CalenadarViewController 클래스는 iOS 16 이상에서 제공하는 UICalendarView를 사용하여 캘린더를 표시하는 기능을 합니다. class CalenadarViewController: UIViewCont..