tag

2020년 (1) 2단계 확인 (1) 공인인증 (1) 공인인증서 (1) 구글 넥서스 2세대 (1) 구글캐스트 (1) 네트워크 위치 (1) 데비안 (1) 도움말 (1) 멤버십 (1) 멤버십 무료 (1) 보안 (1) 소유권이전 (1) 시스템 관리 컨트롤러 재설정 (1) 애플 (2) 애플 뉴스 (1) 애플 보안 인증 (1) 애플 앱스토어 가이드라인 (1) 앱 이전 (1) 앱스토어 커넥트 (1) 업데이트 (1) 이중 인증 (1) 인증 (1) 인증 전환 (1) 자동회전 동작안함 (1) 자동회전 오류 (1) 크롬캐스트 (1) 키체인 (1) AFNetwork (1) align (1) android (1) Android 앱 이전 (1) apns (1) app 이전 (1) app store (1) App Store Connect (1) App Store Review Guidelines (1) App Tranport Security (1) app transfer (1) appcode (2) apple (4) apple developer program (1) apple news (1) AppStore (1) apt (1) apt-get (1) arm64 error (1) asus nexus (1) bitcode (1) bitcode_bundle (1) cast (1) chromecast (1) coredata (1) Could not connect to server (1) CPU (1) csrutil (1) csrutil disable (1) debian (2) debian install on macbook air (1) debian linux (1) debian mirror (1) delfino (1) el capitan (1) Enable Bitcode (1) error (2) ftp.kr.debian.org (1) google (1) google cast (1) google nexus 2nd (1) google play (1) harukasan (1) help appstore connect (1) html5 (1) image logo (1) Info.plist (1) ios (10) ios distribution signning (1) ios11 (1) ios13 sdk (1) iOS8 (1) iOS9 (2) ITMS-90474 (1) ITMS-90475 (1) itunesconnect (1) jessie (1) jetbrains (2) kernel_task (1) lanet (1) left align (1) linux (1) location (1) macbook air (1) MacBookPro8_2 (1) macOS (1) macoscatalina (1) MEMORY (1) must have (1) network location (1) networksetup (1) non-free (1) NSURLComponents (1) NSURLQueryItem (1) Objective-C (1) operation not permitted (1) optimize (1) osx (2) queryItems (1) SMC (1) softforum (1) sourcelist (1) sqlite (1) storyboard (1) swift (4) swiftui (1) system (1) systemstatus (1) tip (1) Transferring an App (1) uinavigationbar (2) UITabBar (1) UITabBarController (1) uiwebview (1) uninstall (1) uninstaller (1) url encode (1) User Experience Guidelines (1) VALID_ARCHS (1) Ventura (1) vim (1) watch os (1) wkwebview (1) WWDR (1) xcode (7) Xcode Help (1) Xcode IDE 도움말 (1) xcode12 (1) Xcode7 (4) Yosemite (1)

광고-자동

hell.o.world

tim toady

2020-12-19

UINavigationBar image logo 와 left align

 UINavgationBar 에 이미지 로고와 이 로고의 좌측 정렬이 필요한 경우라면 

아래 예제가 좋다.

func setUpUI() {
    let logoImage = UIImage.init(named: "logoImage")
    let logoImageView = UIImageView.init(image: logoImage)
    logoImageView.frame = CGRectMake(-40, 0, 150, 25)
    logoImageView.contentMode = .ScaleAspectFit
    let imageItem = UIBarButtonItem.init(customView: logoImageView)
    let negativeSpacer = UIBarButtonItem.init(barButtonSystemItem: .FixedSpace, target: nil, action: nil)
    negativeSpacer.width = -25
    navigationItem.leftBarButtonItems = [negativeSpacer, imageItem]
}

 

참조 : 

https://stackoverflow.com/questions/36648219/adding-a-logo-in-navigation-bar-that-is-left-aligned

댓글 없음:

댓글 쓰기