키보드 올라올때 화면 대응하기 pod 'IQKeyboardManagerSwift' https://github.com/hackiftekhar/IQKeyboardManager GitHub - hackiftekhar/IQKeyboardManager: Codeless drop-in universal library allows to prevent issues of keyboard sliding up and Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more. - Git.. 더보기 Swift IOS 앨범 권한 import Photos switch PHPhotoLibrary.authorizationStatus() { case .authorized: print(".authorized") self.fetchAll() case .denied: print(".denied") permissionView.isHidden = false case .notDetermined: PHPhotoLibrary.requestAuthorization({ switch $0 { case .authorized: print("notDetermined .requestAuthorization") DispatchQueue.main.async { self.fetchAll() } case .denied: print("notDetermined .denie.. 더보기 ios swift get app version var version: String? { guard let dictionary = Bundle.main.infoDictionary, let version = dictionary["CFBundleShortVersionString"] as? String, let build = dictionary["CFBundleVersion"] as? String else {return nil} let versionAndBuild: String = "vserion: \(version), build: \(build)" return versionAndBuild } 더보기 이전 1 2 3 4 5 6 ··· 13 다음