본문 바로가기
반응형

# 애플 [Apple]/iOS40

[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] 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.
[iOS] UITableView 카테고리 게시글 작성 날짜 게시글 최근 수정 날짜 작성자 iOS 2019.04.29 21:33 2022.04.19. 21:59 Dev.Yang A view that presents data using rows arranged in a single column. Table views on iOS display a single column of vertically scrolling content, divided into rows. Each row in the table contains one piece of your app’s content. For example, the Contacts app displays the name of each contact in a separate row, and the ma.. 2019. 4. 29.
반응형