ios7

How to find AVPlayer current bitrate

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:57:17
问题 I am trying to fetch bit rate at which the AVPlayer is playing the video stream . I tried with observed bit rate property of AVPlayerItemAccessLogEvent , but it gives very high value.After exploring further on Observed-bit-rate property I understood that this property shows the value of download rate of a segment .I need to know the bit rate at which the player is playing the stream. The graph below shows Observed bit vs Indicated bit rate for the LIVE stream. Kindly give your suggestion on

UICollectionView - Zoom Transition like iOS7 Calendar

本小妞迷上赌 提交于 2019-12-20 10:47:23
问题 I'm trying to replicate the zoom-to-detail transitions of the iOS7 calendar (and photos) apps in my app with UICollectionView. I have a UICollectionView grid with flowlayout, and I set a new layout with much larger cell size to get the zoom-in transition. My problem is the content of the cell. In the calendar app, when you tap on the month in the year-view, the content from the month cell expands as well to the month-view. How to I get that? I researched solutions since this zoom-to-detail

HTML5 contenteditable attribute not working properly on iOS7 Mobile Safari

余生颓废 提交于 2019-12-20 10:43:41
问题 It seems that the contenteditable attribute (which worked fine on iOS6) has stopped working on iOS7 webkit. Though the browser seems to recognize the field as editable, and brings up the keyboard, any input seems to close it, or it fails to register. Any encounter the same problem, or have any workarounds? You can try it out over here - http://html5demos.com/contenteditable Thanks! 回答1: I ran into this problem today. The solution for me was to set user-select to " text " in the CSS for any

How To Use AVCaptureStillImageOutput To Take Picture

痴心易碎 提交于 2019-12-20 10:34:38
问题 I have a preview layer that is pulling from the camera and working as it should. I would like to be able to take a picture when I press a button. I have inited the AVCaptureStillImageOutput like this: AVCaptureStillImageOutput *avCaptureImg = [[AVCaptureStillImageOutput alloc] init]; Then I am trying to take a picture using this object: [avCaptureImg captureStillImageAsynchronouslyFromConnection:(AVCaptureConnection *) completionHandler:^(CMSampleBufferRef imageDataSampleBuffer, NSError

How can I support the up and down arrow keys with a Bluetooth keyboard under iOS 7

柔情痞子 提交于 2019-12-20 10:34:18
问题 Under iOS 6, up and down arrow keys were respected by UITextView when using an external Bluetooth keyboard and when working in the simulator. Under iOS 7 the up and down arrow keys no longer do anything, although the left and right arrow keys still move the cursor. How do you support up and down arrow keys from an external keyboard in UITextView under iOS 7? 回答1: I have no idea if the omission of up and down arrow key support is intentional in iOS 7. Here's a way to restore about 95% of the

Change the color of the iOS 7 status bar in Safari and Chrome

时光总嘲笑我的痴心妄想 提交于 2019-12-20 10:33:22
问题 I want to change the color of the iOS 7 status bar in Safari and Chrome. I'm working on a mobile web app and would like it to feel native and right now, I just get a white status bar. 回答1: I'm using this while ios has the bug mentioned in other answers. First I set the statusbar with this: <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> For me, that sets the text white and background transparent. It also floats over my content. Then I have following css: body{

UIWebView Bug: -[UIWebView cut:]: unrecognized selector sent to instance

一笑奈何 提交于 2019-12-20 10:28:47
问题 In the UIWebView , if an input element containing text has focus, and a button is pressed that causes the input to lose focus, then subsequently double-tapping on the input to regain focus and selecting Cut (or Copy or Paste) from the popup bar that appears causes the UIWebView to crash with the error: -[UIWebView cut:]: unrecognized selector sent to instance 0x10900ca60 Demo project: https://github.com/guarani/WebViewDoubleTapTestTests.git I think this must be a UIWebView bug, any ideas? For

ios 7 image picker inside popover wrong behavior

本秂侑毒 提交于 2019-12-20 10:25:05
问题 My image picker view controller setted inside popover controller. On iOS 6 everything works great, but on iOS 7 the image is rotated and all movings are doing verse: when turning iPad left image is going down, when moving up image going left, etc. Here is the code for showing my camera: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; objPopView = [[UIPopoverController

How does iBeacon wake up our app? For how long? And how to extend that time?

*爱你&永不变心* 提交于 2019-12-20 10:12:00
问题 after some research of iBeacon I came up with the following questions that I couldn't find extended help: How does iBeacon wake up our app? Does it wake up our app by putting our app into background mode if the app was suspended? What background mode did iBeacon put our app into? What can we do in this background mode? How long can this background mode last before it is suspended again? When it is about to be suspended, what function was invoked? How can we extend this background time if we

Load app icon from xcassets

好久不见. 提交于 2019-12-20 10:08:13
问题 I'd like to display the app icon inside my app. The icon is in the default assets catalog ( Images.xcassets ). How do you load it? I tried the following and they all return nil : image = [UIImage imageNamed:@"AppIcon"]; image = [UIImage imageNamed:@"icon"]; image = [UIImage imageNamed:@"icon-76"]; image = [UIImage imageNamed:@"icon-60"]; Other images in the assets catalog work as expected. 回答1: By inspecting the bundle I found that the icon images were renamed as: AppIcon76x76~ipad.png