[iOS] 애플리케이션 현재 버전 정보 불러오기

r1verfuture·2022년 3월 11일
0

iOS

목록 보기
10/30

코드

private func currentAppVersion() -> String {
        if let info : [String : Any] = Bundle.main.infoDictionary, let currentVersion : String = info["CFBundleShortVersionString"] as? String {
            return currentVersion
        }
        
        return "nil"
    }

더 알아봐야할 것

  • 최신 버전이 아닌 경우 앱스토어로 연결되도록 구현하는 방법
profile
#iOS #Swift #Developer #Python

0개의 댓글