1. TableView의 높이를 동적으로 조절하기

    TableView의 rowHeight 속성에 AutometicDimension을 설정하여 Table 세로 길이가 유동적으로 변한 다는 것을 선언해줘야 함 …


  2. UIButton에 텍스트랑 이미지 둘 다 넣기

    let sortButton: UIButton = { let button = UIButton(frame: CGRect(x: frame.size.width - 74, y: 10, width: 54, height: 30)) button.addTarget(self, action: #selector(ChallengeViewController.buttonPressed(_:)), for: .touchUpInside) button.setTitle("최신순", for: .normal) button.setImage(#imageLiteral(resourceName: "ic_table_sort"), for: .normal) button.titleLabel?.font = .systemFont(ofSize: 13) button.setTitleColor(.gray50, for: .normal) button.contentHorizontalAlignment = .center button.semanticContentAttribute = .forceRightToLeft //중요 return button }() …


  3. iOS + Kakao login 사용하기

    Kakao Developers …


  4. 3rd-party library 추가하기

    Xcode에서 추가 File -> Swift Packages -> Add Package Dependency 를 클릭 → git url 복사 → 끝 …


  5. Clean Swift(VIP)의 장점 및 타 아키텍쳐의 한계점

    https://clean-swift.com/handbook/ 의 번역입니다. 의역/오역이 있을 수 있습니다. 임의로 생략한 내용이 있습니다. …


  6. 정규 표현식을 이용한 특정 키워드를 포함한 문장 삭제 방법

    회사에서 로그파일 분석 중 필요하여 찾아보았습니다. 추후에 유용히 사용할 수 있을 것 같아 간단히 기록을 남깁니다. …


  7. Design Pattern

    왜 아키텍처를 고려해야 할까? …


  8. Capturing Values

    Apple Swift Documentation 번역본 …


  9. Closure

    클로저란 사용자의 코드 내에서 전달 기능을 자체적으로 포함하는 기능 블럭입니다. 클로저는 정의된 컨텍스트로부터 상수와 변수에 대한 참조를 캡쳐하고 저장합니다. 이러한 상수와 변수를 클로징 오버라고 합니다. Swift는 캡쳐의 모든 메모리 관리를 처리합니다. …


  10. Type Casting

    Apple Swift Documentation 번역 …