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

UITabBar 의 Tab Height 조정.

 UITabBarController 사용 시, UITabBar 를 hidden 시키고 자신들만의 디자인을 적용하는 경우가 많습니다만, UITabBar 자체를 사용하면서 커스텀 하는 경우도 있죠.

그 중, 제일 중요한 부분이죠, Tab 높이 조정.

아래 내용을 참조하면 편합니다.

extension UITabBar {

     override open func sizeThatFits(_ size: CGSize) -> CGSize {
     var sizeThatFits = super.sizeThatFits(size)
     sizeThatFits.height = 60 // adjust your size here
     return sizeThatFits
    }
 }




 

참조:

https://stackoverflow.com/questions/23044218/change-uitabbar-height

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

xcode 12로 마이그레이션 시, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 오류

기존 프로젝트에서 xcode 12로 시물레이터 빌드를 실행하는 경우, 

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 관련 오류가

나타난다면, 일단 아래처럼 처방해 볼 것.

다른 여러가지 이유가 있을 수 있지만, xcode 12로 마이그레이션 하면서 첫 빌딩 에러가 링킹 관련 오류라면

VALID_ARCHS 속성 자체를 삭제할 것.

xcode 12 부터 이 속성값을 지원하지 않기 때문에 value 속성이 없더라도 key이 존재하는 것만으로도

오류를 발생 시킨다.


물론 여러 다른 이류로 오류가 발생할 수 있지만, 첫 번째로 이것을 확인 해 볼것.

참고:

https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios

2020-12-18