목록iPhone (4)
ㄷㅣㅆㅣ's Amusement
이전에 비디오 플레이어 튜토리얼을 포스팅 했으니(2016/02/23 - [프로그래밍/iOS] - [iOS/Objective-C] Video Player tutorial using AVPlayer (AVFoundation)), 여세를 몰아 오디오 플레이어도 만들어보자. Last posting is Video Player Tutorial(2016/02/23 - [프로그래밍/iOS] - [iOS/Objective-C] Video Player tutorial using AVPlayer (AVFoundation)). so We'll make a simple audio player this time. - 요구사항 1) 백그라운드에서 플레이 되어야 한다. 2) iOS의 Now Playing Info Center에 현..
오늘은 간단하게 아이폰/아이패드에서 비디오를 재생시키는 앱을 만들어보자.Today's post is about simple Video Player on iPhone/iPad. 1. 안드로이드의 비디오 뷰와 같이 사용할 수 있도록 UIView를 상속받아 비디오 레이어를 붙여준다.1. To use like an android video view, Inherit UIView and add the video layer to it.123456@import AVFoundation;#import @interface VideoView : UIView@property (strong, nonatomic) AVPlayerLayer *videoLayer;@endColored by Color Scriptercs 12345678..
[iOS/Objective-C]에서 thread를 순차적으로 처리하기.Thread starts when the other Thread ends [on iOS/Objective-C] 여러가지 방법이 있겠지만.... 세마포어를 사용하면 간단하다.There are so many way to do. but, you had better to use semaphore. 1. Create semaphoredispatch_semaphore_t sema = dispatch_semaphore_create(0); 2. Do Threaddispatch_async(......, ^ { // Do something ........ dispatch_semaphore_signal(sema);)}; 3. Wait for semapho..
iOS에서 캘린더에 접근하는 방법. 1. header - @import EventKit; 2. Getting Permission. 123456789101112131415161718192021222324- (void)requestAccessToEvents:(void (^)(BOOL bGranted))complete { BOOL needsToRequestAccessToEventStore = NO; EKAuthorizationStatus authorizationStatus = EKAuthorizationStatusAuthorized; if ([[EKEventStore class] respondsToSelector:@selector(authorizationStatusForEntityType:)]) { autho..