iOS 312

iOS swift ActivityViewController

iOS swift ActivityViewController ios 애플폰에서 공유하기 할 때 사용됨 주로 백업-복구 작업 중 백업 버튼 누르면 어디로 공유할 것인가 ? 또는 어디 파일에 저장할 것인가 등 쓸 때 사용하는 코드 https://hyerios.tistory.com/5 iOS ActivityViewController 공유하기 공유하는 목적으로 사용되는 ActivityViewController ! UIActivityViewController는 앱에서 기본적인 서비스를 제공하는 표준 서비스 뷰 컨트롤러입니다. 이 시스템은 이메일이나 소셜커머스, 컨텐츠 게시, hyerios.tistory.com

[iOS swift] snapkit tableview 만들 때 유의사항

[iOS swift] snapkit tableview 만들 때 유의사항 tableview cell 안에 contentview가 있어서 이 요소 아래에다가 addSubview로 등록해주고 시작해야 함..!! contentView를 안쓰고 그냥 tableviewcell 에 등록하면 망.. self.contentView.addSubview(tableviewcellStackView) https://hururuek-chapchap.tistory.com/165 ERROR) UIButton.addTarget이 작동 안 될 때 In Code 안녕하세요 후르륵짭짭입니다. 이번에 Code로 TableView를 구현 할 때, Button을 넣는데 작동하지 않는 것 입니다... 두가지에 대해 문제가 있는데 각각 알아보도록 하..

UIButton in UITableViewCell

UIButton in UITableViewCell https://leechamin.tistory.com/500 [iOS] UITableViewCell내 UIButton 액션이 작동하지 않을 때 (feat. tag/delegate/closure) 아무렇지 않게 tableView의 CustomCell에 UIButton을 넣어주고 addTarget을 하여 액션을 넣어주고 있었다. . . 응??🧐 . . 당연히 cell에 넣어주고 action을 주면 작동을 하리라 생각했으나 되지 않았다..! 바로.. leechamin.tistory.com

[iOS swift] snapkit 이용한 tableview 코드로 만들기

[iOS swift] snapkit 이용한 tableview 코드로 만들기 https://stackoverflow.com/questions/55399361/i-want-to-position-top-uiview-on-top-of-uitableview-using-snapkit I want to position top UIView on top of UITableView using SnapKit I'm written in snapkit for UI render. I have not use storyboard or nib files. I want to position top UIView on top of UITableView using SnapKit. How to write it? Below is my writt..

옵저버 & NotificationCenter

옵저버 https://velog.io/@kevinkim2586/iOS-Swift-%EA%B3%B5%EB%B6%80-Observer-Notification-Design-Pattern iOS & Swift 공부 - Observer & Notification Design Pattern Observer & Notification → Observer 가 코드 어딘가에서 서식하며 Notification 을 기다리는 개념 → 특정 이벤트가 발생하면 Notification 을 발동하게끔 할 수 있음. 그때 기다리고 있던 Observer 역시 발동하여, velog.io https://hongssup.tistory.com/196 [Swift iOS] NotificationCenter & Observer Notificati..

[iOS swift] for-in vs. for-each 차이

[iOS swift] for-in vs. for-each 차이 1. 반복문 O / X - break,continue 의 사용 / 사용불가 2. return 문의 동작방식 차이 - 그대로 종료 / 클로저 https://intrepidgeeks.com/tutorial/swift-difference-between-for-in-and-for-each [Swift] for-in과 for-each의 차이 func withForIn() { print(#function) let arr = [1,2,3] for num in arr { print(num) return } } func withForeach() { print(#function) let arr = [1,2,3] arr.forEach { (num) in prin..