본문 바로가기

빙수왕의 개발일지

검색하기
빙수왕의 개발일지
프로필사진 빙수킹

  • 카테고리 (70)
    • 개발 (67)
      • Android (5)
      • iOS (55)
      • 그 외 (7)
    • 아무말 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
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
Tags
  • rib
  • ios
  • 로버트마틴형
  • Automatically manage signing
  • Apple Certificate
  • 잡초가득블로그
  • RIBs Tutorial
  • in-out
  • 클린아키텍쳐
  • UICoordinateSpace
  • 대머리깃허브
  • swiftdocs
  • Github file size
  • Dispatch.main.sync
  • Ribs
  • Git Large File Storage
  • Concurrent
  • conflicting access to memory
  • RxCocoa
  • Dependency Rule
  • Large File Storage
  • memory safety
  • iOS Target
  • RxSwift
  • windowScene
  • iOS 버전 점유율
  • 메모리 접근 충돌
  • App Signing
  • SWIFT
  • coordinateSpace
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록UIButton (1)

빙수왕의 개발일지

iOS) UIButton Custom해서 CheckBox 만들기

iOS에는 안드로이드와 달리 체크박스가 없어서 UIButton을 이용해서 만들어야 한다. 기본 UIButton의 selected 상태를 사용하여 이미지를 변경해 줄 수도 있지만, 확장성을 생각해서 Custom Class를 만들어 보았다. /// 체크박스 class CheckBox: UIButton { /// 체크박스 이미지 var checkBoxResouces = OnOffResources( onImage: UIImage(named: DefaultResource.checkedImage), offImage: UIImage(named: DefaultResource.notCheckedImage) ) { didSet { self.setChecked(isChecked) } } enum DefaultResource..

개발/iOS 2021. 9. 23. 15:16
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바