Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- CarouselCollectionview
- 롤케이크 자르기
- @escaping
- NavigationSearchBar
- 테이블뷰 나누기
- SWIFT
- 면접을 위한 CS 전공 지식 노트 Tree
- 자료구조
- 강한 참조 순환
- Value Type Reference Type
- ReferceCycle
- firebase
- CoreData
- Array vs Linked List
- coremotion
- 면접을 위한 CS전공 지식 노트
- 프로그래머스
- UserDefaults
- tableview section별 다른 cell적용
- Carousel CollectionView
- TableView
- TableView Section
- Input Output
- til
- 양궁대회
- class struct
- Reference Cycle
- retain cycle
- UIKit
- wil
Archives
- Today
- Total
개발하는 동글 :]
[TIL],[UIKit],[Cell 추가 즉시 반영] 본문
Why?
- cell을 추가할 때 cell이 바로 나오지 않음
- 하단의 n개의 메모가 반영되지 않음
TIL
1. 메모가 추가되는 메서드에 아래의 코드를 추가하여 해결
myTableView.reloadData()
2. viewWillAppear에 tool 바를 다시 재정의?를 해줌
override func viewWillAppear(_ animated: Bool) { // 화면이 새롭게 그려질 때마다 호출됨
myTableView.reloadData()
self.toolbarItems = makeToolbarItems()
}
결과 모습