반응형 분류 전체보기232 [OS - 🍎 macOS] macOS 현재 사용자 이름 구하기 (Getting the currently logged in user on macOS) 👓 001. SCDynamicStoreCopyConsoleUser(_:_:_:) // MARK: - Returns information about the user currently logged into the system. func SCDynamicStoreCopyConsoleUser(_ store: SCDynamicStore?, _ uid: UnsafeMutablePointer?, _ gid: UnsafeMutablePointer?) -> CFString? 👓 002. SCDynamicStoreKeyCreateConsoleUser(_:) // MARK: - Creates a key that can be used to receive notifications when the current console u.. 2019. 11. 20. [iOS] URL 주소를 통해서 사파리에서 열기 (How to open a URL in Safari?) [iOS] URL 주소를 통해서 사파리에서 열기 (How to open a URL in Safari) 📄 Open a URL in Safari Source Code by Swift guard let url = URL(string: "https://www.naver.com") else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], completionHandler: nil) } else { // Here, UIApplication.shread.open Error Source Code. } 🚀 REFERENCE How to open a URL in Safari - free Swift.. 2019. 11. 20. [iOS - Error] Google App ID from GoogleService-Info.plist is empt (How to add .plist file to all targets in Xcode?) 🔧 Error Message Google App ID from GoogleService-Info.plist is empty. Download GoogleService-Info.plist(GoogleService-Info.plist 다운로드)를 클릭하여 Firebase iOS 구성 파일(GoogleService-Info.plist)을 가져옵니다. 구성 파일을 Xcode 프로젝트의 루트로 이동합니다. 메시지가 표시되면 모든 대상에 구성 파일을 추가하도록 선택합니다. + 프로젝트에 번들 ID가 여러 개 있으면 각각 자체 GoogleService-Info.plist 파일이 포함되도록 각 번들 ID를 Firebase Console의 등록된 앱에 연결해야 합니다. 🚀 REFERENCE iOS 프로젝트에 Fireba.. 2019. 11. 3. [iOS - Error] 'keyWindow' was deprecated in iOS 13.0: Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes (How to resolve: 'keyWindow' was deprecated in iOS 13.0) 🔧 Error Message 'keyWindow' was deprecated in iOS 13.0: Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes UIApplication.shared.windows.filter { $0.isKeyWindow }.first?.rootViewController 🚀 REFERENCE How to resolve: 'keyWindow' was deprecated in iOS 13.0 I'm using Core Data with Cloud Kit, and have therefore to check the iCloud.. 2019. 11. 3. 이전 1 ··· 34 35 36 37 38 39 40 ··· 58 다음 반응형