Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
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
more
Archives
Today
Total
관리 메뉴

iOS 개발일지

0724 1차 평가과제 (3주차) 본문

SeSAC iOS 데뷔과정 2기

0724 1차 평가과제 (3주차)

Lia's iOS 2022. 7. 24. 20:56
새싹 3주차 - 1차 평가과제

 

 

 

 

 - 초기화 버튼 구현

모든 UserDefaults 삭제하기

for key in UserDefaults.standard.dictionaryRepresentation().keys {
            UserDefaults.standard.removeObject(forKey: key.description)
        }

 

모든 rootViewController의 하위 ViewController dismiss 하기

 self.view.window?.rootViewController?.dismiss(animated: true, completion: nil)

 

 

 

 - 텍스트필드 테두리 없애기

self.borderStyle = .none

 

 

 

- 네비게이션 바 자잘한 변경

네비게이션 아이템 컬러 변경

navigationItem.titleView?.tintColor = .fontColor

 

버튼 타이틀 없애기

self.navigationController?.navigationBar.topItem?.title = ""

 

 

 

- 루트 뷰로 돌아가기(중간 모든 뷰 스택에서 빼기)

self.view.window?.rootViewController?.dismiss(animated: true, completion: nil)

'SeSAC iOS 데뷔과정 2기' 카테고리의 다른 글

0726 새싹 17회차 정리  (0) 2022.07.26
0725 새싹 16회차 정리  (0) 2022.07.25
0722 새싹 15회차 정리  (0) 2022.07.22
0721 새싹 14회차 정리  (0) 2022.07.21
0720 새싹 13회차 정리  (0) 2022.07.20