본문 바로가기

전체 글148

[Swift] 백준 2630번 색종이 만들기 링크: https://www.acmicpc.net/problem/2630 2630번: 색종이 만들기 첫째 줄에는 전체 종이의 한 변의 길이 N이 주어져 있다. N은 2, 4, 8, 16, 32, 64, 128 중 하나이다. 색종이의 각 가로줄의 정사각형칸들의 색이 윗줄부터 차례로 둘째 줄부터 마지막 줄까지 주어진다. www.acmicpc.net 이 문제의 풀이는 핵심 풀이는 '모두 같은 색상이 아니라면 1/4씩 쪼개 4번을 더 탐색한다.' 입니다. 1. 전부 같은 색상인 경우 array의 색상의 갯수를 +1합니다. 2. 전부 같은 색상이 아닌 경우 1/4씩 쪼개 4번의 탐색을 진행합니다. isSameColor 함수의 경우 reduce로도 계산이 가능하지만 성능 향상을 기대하기 위해 for문으로 작성하였습.. 2022. 5. 11.
How to show <private> in os_log Problem this will display Some string: os_log(logger, "Some string: %s", "text that will display ") Solve In order for the text to display as expected, it would need to be declared with the public tag: os_log(logger, "Some string: %{public}s", "text that will display as expected") 2022. 5. 10.
[WWDC20] Expand your SiriKit Media Intents to more platforms 링크: https://developer.apple.com/videos/play/wwdc2020/10061/ Expand your SiriKit Media Intents to more platforms - WWDC20 - Videos - Apple Developer Discover how you can enable Siri summoning for your music or audio app using SiriKit Media Intents. We'll walk you through how to add... developer.apple.com 목차 1. 새 플랫폼 2. 새 기능 3. 성능 향상 1. 새 플랫폼 - HomePod 인공지능 스피커입니다. - Apple TV Apple TV에 음악 재생을 요청하는.. 2022. 5. 9.
[WWDC20] Decipher and deal with common Siri errors 링크: https://developer.apple.com/videos/play/wwdc2020/10074/ Decipher and deal with common Siri errors - WWDC20 - Videos - Apple Developer “Sorry, there was a problem with the app... developer.apple.com Xcode에서 Scheme Editor를 통한 자동 Siri Query를 하는 방법은 Intents Extension의 Scheme Editor에서 Siri Intent Query에 질의할 내용을 넣는 것입니다. Intents Extension을 실행할 때 host process를 선택할 수 있습니다. Intents extension을 실행했을 때 .. 2022. 5. 9.
[WWDC19] Introducing SiriKit Media Intents 링크: https://developer.apple.com/videos/play/wwdc2019/207/ Introducing SiriKit Media Intents - WWDC19 - Videos - Apple Developer iOS 13 enhances SiriKit by bringing all new support for audio content playback. See how to provide an excellent, hands-free experience... developer.apple.com iOS 13 이상부터 오디오 유스케이스를 위한 미디어 도메인 지원을 시작합니다. 목차 1. 새 SiriKit Media Intents 소개 2. SiriKit Media Reqeusts 핸들링 3. B.. 2022. 5. 9.
[WWDC16] Extending Your Apps with SiriKit 유튜브 링크: https://www.youtube.com/watch?v=7TZHLjdViYA 목차 1. SiriKit 도입 준비하기 2. Intents extension 추가하기 3. Siri에서 UI 제공하기 1. SiriKit 도입 준비하기 Embedded frameworks(포함된 프레임워크)에는 네트워킹, 데이터 모델, 결정 로직, UI가 있습니다. Intents extension과 App의 코드를 공유하여 재사용성을 높일 수 있습니다. Unit tests에서는 Mock intents로 앱이 의도대로 응답하는지 확인해야 합니다. 데모앱에는 3가지의 Intent를 가지고 있습니다. 이것을 하나의 Intent extension으로 관리하면 코드가 너무나 방대해집니다. 하지만 한 Intent 당 하나의.. 2022. 5. 2.