tvos
How to play YouTube content on tvOS
UIWebView and MPMoviePlayerController are not available for tvOS. Our next option is to use AVPlayer to play YouTube videos. AVPlayer cannot play a YouTube video from a standard YouTube URL, ie. https://www.youtube.com/watch?v=8To-6VIJZRE. It needs a direct URL to the video file. Using HCYoutubeParser we can accomplish exactly that. Once we have the URL we need, … Read more
How to extend iOS app to tvOS
The tvOS SDK is based off of iOS, but is not interchangeable. Unlike when the first iPad was released, the new Apple TV will not be capable of running iOS apps. The AppStore for the TV will only include apps built specifically for tvOS. For any iOS developers looking to create apps for Apple TV, … Read more
How to retrieve iPhone IDFA from API?
First, you have to ask permission from the user to use their IDFA: #import <AppTrackingTransparency/AppTrackingTransparency.h> [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) { // Tracking authorization completed. Start loading ads here. }]; This permission flow will only run once, the first time it is called, even if you re-start the app and/or call it again. If you want to … Read more