xcode3 iOS Swift UILabel에 Padding 적용하기 UILabel에는 아쉽게도 Padding을 적용 할 수 없습니다. 그래서 UILabel을 상속 받은 클래스에 Padding을 적용 할 수 있도록 처리를 해야 합니다. Padding을 적용하는 방법에 대해서 알아보겠습다. 1. Xcode 에서 Swift 파일(PaddingLabel.swift)을 추가합니다. 2. PaddingLabel.swift에 아래의 코드를 작성합니다. import UIKit @IBDesignable class PaddingLabel: UILabel { @IBInspectable var topPadding: CGFloat = 0.0 @IBInspectable var leftPadding: CGFloat = 0.0 @IBInspectable var bottomPadding: CGFloa.. 2023. 3. 16. Xcode 14에서 Main 스토리보드 지정하기 Xcode 14에서는 프로젝트 설정의 General에 Main Interface 속성이 없어졌습니다. 어딘가에 있을 것 같아서 찾아보니 프로젝트 설정의 Info으로 변경되었습니다. 아래의 그림에서와 같이 Info > Custom iOS Target Properties > Main storyboard file base name에 Main 스토리 보드를 지정하면 됩니다. 2023. 2. 8. iOS에 Admob Framework 링크 시 함께 링크해야 할 Framework 목록 iPhone 앱에 Admob 광고를 넣기 위해서는 xcode에서 Admob Framework을 링크해야 하는데, 함께 링크해야 하는 Framework 목록 입니다. MessageUI.framework GLKit.framework AdSupport.framework MediaPlayer.framework StoreKit.framework CoreMotion.framework GameController.framework 2018. 6. 29. 이전 1 다음