ios8

Getting Timed Metadata in Swift ios 8 From M3U8 Streaming Video

守給你的承諾、 提交于 2019-12-31 18:17:14
问题 I'm trying to duplicate this https://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/ in swift. Here is a video of Jake's code in action... Objective C Timed Metadat in HLS stream Here is an additional link to something similar... http://cloudfields.net/blog/metadata-audiostream-mpmovieplayercontroller/ When my video is playing timed metadata should update a button to redirect to a specific youtube url in a webview when clicked. My video is roughly 15 min long and has 6

Decoding h264 in iOS 8 with video tool box

时光怂恿深爱的人放手 提交于 2019-12-31 12:09:21
问题 Need to decode h264 stream and get the pixel buffers I know its possible with video tool box on iOS 8 1.How do I convert the h264 stream to CMSampleBufferRef ? 2.How do I use the video tool box to decode? 回答1: I assume you get the stream in Annex B format, if it is already in AVCC format (read MP4), then you can you the AssetReader and do not need to do much. For an Annex B stream (this is what ppl. often call raw h264 stream). extract SPS/PPS NAL units and create a parameter set from then.

Decoding h264 in iOS 8 with video tool box

▼魔方 西西 提交于 2019-12-31 12:09:17
问题 Need to decode h264 stream and get the pixel buffers I know its possible with video tool box on iOS 8 1.How do I convert the h264 stream to CMSampleBufferRef ? 2.How do I use the video tool box to decode? 回答1: I assume you get the stream in Annex B format, if it is already in AVCC format (read MP4), then you can you the AssetReader and do not need to do much. For an Annex B stream (this is what ppl. often call raw h264 stream). extract SPS/PPS NAL units and create a parameter set from then.

Animation of CGAffineTransform in iOS8 looks different than in iOS7

流过昼夜 提交于 2019-12-31 10:33:30
问题 I'm trying to find a reason why animation of UIView transform property looks different in iOS 8 than iOS 6/7. For a simple example, prior to iOS 8: myView.transform = CGAffineTransformRotate(CGAffineTransformIdentity, 1.57); [UIView animateWithDuration:5 animations:^{ myView.transform = CGAffineTransformTranslate(plane.transform, 100, 0); }]; gives expected result, "myView" is rotated 90 degrees and moves down, but in iOS8 when translation is animated it starts at a point that I couldn't find

snapshotViewAfterScreenUpdates glitch on iOS 8

那年仲夏 提交于 2019-12-31 09:21:30
问题 I've noticed running this would cause view (or main window, not sure) to resize for a moment, when running on iPhone 6/6+ simulator scaled from iPhone 5 layout (without passing launch image for iPhone 6/6+): [self.view snapshotViewAfterScreenUpdates:YES]; Any idea how to make it work when you can't pass 'NO' there? Update (Jul 13th): Does not seem to reproduce on iOS 8.4 anymore. 回答1: Since it seemed like an Apple/API problem, I just decided to not use that method when I need to pass a "YES."

snapshotViewAfterScreenUpdates glitch on iOS 8

99封情书 提交于 2019-12-31 09:21:22
问题 I've noticed running this would cause view (or main window, not sure) to resize for a moment, when running on iPhone 6/6+ simulator scaled from iPhone 5 layout (without passing launch image for iPhone 6/6+): [self.view snapshotViewAfterScreenUpdates:YES]; Any idea how to make it work when you can't pass 'NO' there? Update (Jul 13th): Does not seem to reproduce on iOS 8.4 anymore. 回答1: Since it seemed like an Apple/API problem, I just decided to not use that method when I need to pass a "YES."

How to implement Interstitial iAds in Swift(Xcode 6.1)

血红的双手。 提交于 2019-12-31 09:06:13
问题 I am trying to figure out how to switch over from my banner view iAds to interstitial iAds in order to free up space for a tabbed controller. For some reason I am completely unable to find any resource for even getting started on these ads with swift. Could anyone please give me some information on interstitial iAds with Swift and how I can implement them in a project. 回答1: Here is a relatively cleaner and easier to follow way to implement Interstitial Ads since this way doesn't require the

iOS8 icons sizes and names for icons and launch image

南笙酒味 提交于 2019-12-31 08:09:33
问题 I am not finding a straight forward site with the iOS8 sizes and names for the app icons and launch image. I have seen the iOS Human Interface Guidelines but they don't really tell you how to name them. Can someone list them out specifically? 回答1: As rmaddy mentioned since Xcode 5 you don't need to name your icons in any specific way . Use the App Icon Asset to add your icons. Regarding the sizes for your icons, you'll also find them in your App Icon Asset Catalog, but for convenience here's

How to determine if the iPhone 6+ (plus) is in Standard or Zoom mode

余生长醉 提交于 2019-12-31 06:04:52
问题 I'm trying to determine if the iPhone 6+ is in standard or zoom mode and I can't find any API's that help determine this, so far the only thing that is indicating which mode the phone is in is the nativeScale if ([UIScreen mainScreen].nativeScale == 3.0) { // its in the simulator } else if ([UIScreen mainScreen].nativeScale == 2.880000) { // its an iPhone 6+ in zoom mode } else if ([UIScreen mainScreen].nativeScale == 2.6086956521739131) { // its an iPhone 6+ in standard mode } 回答1: How about

How to power iOS device off [duplicate]

守給你的承諾、 提交于 2019-12-31 05:10:31
问题 This question already has answers here : Activate airplane mode programmatically? (2 answers) Closed 4 years ago . Yes. I actually think that what I am asking is impossible but I'd like to know if you have any idea how to power the iPhone off with swift or objective c code, or at least enter the airplane mode. 回答1: You cannot do this with the Public APIs provided by apple. This may be done using the unreleased Private APIs. But According to Apple's policy, usage of any Private APIs will lead