목록App/Swift (11)
씬디의 블로그

SwiftTableViewController에서는 필수로 써야하는 3가지의 메서드가 있다1. 셀 갯수: numberOfRowsInSection2. 셀 디자인 및 데이터 처리: cellForRowAt3. 셀 높이: heightForRowAt외울 필욘 없다우~ 1. 셀 갯수: numberOfRowsInSection이 경우는 list에 쇼핑 아이템 리스트가 계속 추가되는 변동사항이 있기 때문에list의 count로 셀의 갯수를 정해주었다!이 경우에는 Section이 나눠져있고 Section마다 Cell의 개수가 다르기 때문에 else를 통해 나눠주었다 * 섹션 개수 설정: numberOfSections 2. 셀 디자인 및 데이터 처리: cellForRowAtCell 안에 들어가는 디자인과 데이터 요소들을 ce..

Swift와 진짜 오랜만에 블로그 쓴다새싹 수업 듣고, 과제하고 하느라 2주를 진짜 꽉차게 보냈다못따라가거나 부족한 부분이 생기면 눈덩이처럼 불어나기에 주말을 반납하고 못다한 과제에 매달렸다다 메꾸고나니 못한 공부들, 채워넣어야할 개념들이 산더미였고, 옵셔널 강의를 한가득 듣고나서TableViewController 화면을 더 만들어보면 좋을 것 같다는 Jack님의 얘기가 생각났다Table View - Content 내에는 Dynamic Prototypes와 Static Cells 두가지가 있다아직 헷갈려서 정리하기 위해 블로그를 오랜만에 킨 것 순서를 거슬러 Static Cells 부터왜냐하믄 Static Cells는 코드 전~혀 없이 그냥 스토리보드로만 구현한거거든 Static Cells이 화면이 St..

Swifthttps://developer.apple.com/documentation/uikit/uiswitch/1623686-seton setOn(_:animated:) | Apple Developer DocumentationSets the state of the switch to the on or off position, optionally animating the transition.developer.apple.comtoggleButton.setOn(true, animated: true)setOn(true): 스위치가 켜있는 상태toggleButton.setOn(false, animated: true)setOn(false): 스위치가 꺼져있는 상태toggleButton.setOn(true, anima..