본문 바로가기
반응형

ios73

[iOS] 진동 및 시스템 효과음 (Vibration and System Sound) + System Sound 파일 경로 /System/Library/Audio/UISounds/ 📄 System Sound Play Swift Source Code import AudioToolbox AudioServicesPlaySystemSound(/* SERVICE_NUMBER */ 4095) 🚀 REFERENCE AudioServices - iPhone Development Wiki From iPhone Development Wiki AudioServices is a group of C functions in AudioToolbox for playing short (≤30 seconds) sounds. Predefined sounds There are some predefined system sou.. 2019. 6. 27.
[iOS - Error] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' 🔧 Error Message Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' 기본 UI ViewController를 지정하지 않아서 나오는 오류로 컨트롤러를 선택한 후 'Is Initial View Controller' 항목을 체크합니다. 🚀 REFERENCE iOS 7 - Failing to instantiate default view controller I am using Xcode 5 in a newly created app and when I just create it I go for the run button e click on it, then the project gets built but it .. 2019. 6. 27.
[iOS] UITableView 셀 크기의 맞춰 높이 동적 설정 (Resizing UITableView to fit content) 📄 [iOS] UITableView DataSourceResizing UITableView to fit content Swift Source Code var frame: CGRect = self.movieUserCommentTableView.frame frame.size.height = self.movieUserCommentTableView.contentSize.height self.movieUserCommentTableView.frame = frame 📄 [iOS] UITableView DataSourceResizing UITableView to fit content Objective-C Source Code dispatch_async(dispatch_get_main_queue(), ^{ //This .. 2019. 6. 23.
[iOS] JSONEncoder / JSONDecoder 스위프트 4 버전 이전에는 JSONSerialization을 사용해 JSON 타입의 데이터를 생성했습니다. 그러나 스위프트 4 버전부터 JSONEncoder / JSONDecoder가 Codable 프로토콜을 지원하기 때문에 JSONEncoder / JSONDecode와 Codable 프로토콜을 이용해 손쉽게 JSON 형식으로 인코딩 및 디코딩할 수 있습니다. 즉, JSONEncoder 및 JSONDecoder를 활용하여 스위프트 타입의 인스턴스를 JSON 데이터로 인코딩, JSON 데이터에서 스위프트 타입의 인스턴스로 디코딩할 수 있습니다. 📚 JSON (JavaScript Object Notation) 이란? JSON (제이슨[1], JavaScript Object Notation)은 속성-값 쌍( .. 2019. 5. 1.
반응형