Development/iOS

[iOS] 7월 22일 (목) 개발 일지
import UIKit class ViewController: UITableViewController { let persons = ["Robert", "Peter", "Dave"] override func viewDidLoad() { super.viewDidLoad() } // MARK: 1번. @IBSegueAction private func showPerson(coder: NSCoder, sender: Any?, segueIdentifier: String?) -> PersonViewController? { guard let indexPath = tableView.indexPathForSelectedRow else { fatalError("Nothing selected!") } return Person..

[iOS] 7월 21일 (수) 개발 일지
1. ScrollView의 Paging Enabled 이걸로 Swipe Button X Page 구현 중이다. 2. ScrollView 마스터 동적 높이를 어떻게 구현하지 ? 싶었는데, https://stackoverflow.com/a/50944427 그냥 쉽게 생각하면 돼. SubView의 각각 아이템들을 SubView와 leading, trailing, top, bottom 모두 맞춰주면 돼. 3. An internal error occurred. editing functionality may be limited. 갑자기 스토리 보드 화면이 다 검은색으로 나옴. 검색해보니 Project -> Clean Build Folder 후 Xcode 재실행 하면 된다. 4. UILabel Storyboard상에..
[iOS] 7월 19일 (월) 개발 일지
1. Cell Dynamic Height 구현 우선 Label의 경우 Lines를 0으로 설정한다. 2. Collection Reusable View Collection View를 Scroll View 내부에 넣어도 되나? 고민하던 중, 넣지 말고 Collection Resuable View를 사용하라는 스택오버플로우의 답변을 찾았다. https://stackoverflow.com/a/47174824 CollectionView inside ScrollView So my problem is that every time that I'm trying to scroll, scroll view doesn't work. Only the scroll of the collection view is working. I ..

[iOS] 7월 18일 (일) 개발 일지
1. Progress View - Vertical 우선 기본적으로 Progress View를 제공한다. Vertical 하게 만들고 싶어 구글링 해보니 보통 90도 로테이션 해서 사용한다고들 했다. Storyboard상에 나타낼 수 있는 방법은 없는지 찾아보던 중 https://stackoverflow.com/a/37282899 를 발견했다. UIProgressView의 CustomView를 만들어야 했기에 UIView가 아닌 UIProgressView를 상속받는 Cocoa Class를 만들었다. import UIKit @IBDesignable class VerticalProgressView: UIProgressView { @objc @IBInspectable var rotationDegrees: Flo..