ios7

Embedded Youtube: How to get high quality on iOS 7 ipad

前提是你 提交于 2020-01-01 14:34:39
问题 I have an embedded youtube video on a web page. On the desktop it works fine. However, on an ipad (running iOS7) the video quality is rather poor, probably 480p. Inside the iframe it looks fine, but when you make the video full screen it is very noticeable. I have tried using hd=1&vq=hd720 in the querystring and using cueVideoById with a suggested quality of 'hd720' but neither worked. Are there any work arounds either to get higher resolution on the ipad when embedded youtube videos are made

How to check for microphone access at time of launch?

痴心易碎 提交于 2020-01-01 09:20:58
问题 In my app, I will be using a microphone to do some recording. From iOS7.0 onwards, the user is asked to check the permission to access the microphone before starting the audio. I have a button 'Start Recording' in my app. Here it first checks the user's permission for recording. Here's the code to do this: if([[AVAudioSession sharedInstance] respondsToSelector:@selector(requestRecordPermission:)]) { [[AVAudioSession sharedInstance] performSelector:@selector(requestRecordPermission:)

Navigation bar in iOS 6 look like bar in iOS 7

北城余情 提交于 2020-01-01 09:18:21
问题 Is there any way to make navigation bar elements (back button) in iOS 6 look like navigation bar elements in iOS 7 ? And also buttons and other iOS 7 elements of UI. 回答1: Instead of putting code into every view controller that you need to customize, I would recommend doing this for the entire application by putting something like this in your application:didFinishLaunchingWithOptions: method in the App Delegate // Nav bar [[UINavigationBar appearance] setBackgroundImage:[[UIImage imageNamed:@

Do I still need low-resolution images for using Interface Builder when developing iPhone app for iOS 7?

与世无争的帅哥 提交于 2020-01-01 08:46:26
问题 I started to develop an iPhone app for iOS 7. Since iOS 7 does not support devices with non-retina display for the iPhone/iPod touch, and it uses high-resolution images on non-retina iPads (iPad 2 and iPad mini) in the iPhone emulation mode, now I think we don't need to provide low-resolution images when developing an iPhone-only app which deployment target is iOS 7. I thought it's great, but soon I faced a problem when I used a Storyboard; apparently Interface Builder can not display high

iOS 7.1 imagePicker CameraFlashMode not indicating Flash state

强颜欢笑 提交于 2020-01-01 08:24:09
问题 I have iPhone application which overlays the camera with custom view. I have a button to switch between camera flash mode, this is the code switch ([self.imagePickerController cameraFlashMode]) { case UIImagePickerControllerCameraFlashModeAuto: [self.imagePickerController setCameraFlashMode:UIImagePickerControllerCameraFlashModeOn]; return @"On"; break; case UIImagePickerControllerCameraFlashModeOn: [self.imagePickerController setCameraFlashMode:UIImagePickerControllerCameraFlashModeOff];

iOS 7 - Disable UITabBarItem tint color

为君一笑 提交于 2020-01-01 08:16:09
问题 I have a UITabBar with five icons, most of them being flat with just one color. However, one of these buttons should not have a tint color, since it's the company's logo and the logo has various different colors. I know it's possible to to so with UINavigationBar and UIToolbar (which is what I'm using and it's a horrible workaround). I did some heavy searching and tried many different solutions (I came up with with some crazy ones too), but none of them seem to work for me o iOS 7. Does

Receiver type is forward declaration

安稳与你 提交于 2020-01-01 07:36:14
问题 I have this code (along with other stuff): - (NSManagedObjectContext *) managedObjectContext { assert([NSThread isMainThread]); if (_managedObjectContext != nil) { return _managedObjectContext; } NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator]; if (coordinator != nil) { _managedObjectContext = [[NSManagedObjectContext alloc] init]; [_managedObjectContext setPersistentStoreCoordinator: coordinator]; } return _managedObjectContext; } These lines are giving me

Why isn't my Asset Catalog returning R4 images?

不羁的心 提交于 2020-01-01 07:35:25
问题 I'm in the process of migrating my images to an Asset Catalog. My app needs to access the Launch Image after launch and display it on the screen. Easy enough, but I have different images for short and tall iPhones, and my iPhone 5 is loading the short launch image when I call [UIImage imageNamed:@"LaunchImage"] . Okay so maybe I can't do this with a Launch Image. I'll try putting some images in a normal Image Set instead. No dice. Using an iPhone 5, when I call [UIImage imageNamed:@"Derp"] OR

NSXMLParser Degelate Method 'parseErrorOccurred:' is Never Called on iOS 7

浪子不回头ぞ 提交于 2020-01-01 07:06:07
问题 I have been pulling out my hair for more than two days to fix this problem, and I was resisting so badly not to ask a question here since it might be someone else's problem before, but googling and reading all related questions on Stackoverflow like this, or this and reading more tutorials and testing different sample codes, I still haven't been able to figure this out. I had an RSS parser app that has been working pretty well since it was released on the store two years ago. It's a simple

Will identifierForVendor change when updating from iOS6 to iOS7

独自空忆成欢 提交于 2020-01-01 06:55:29
问题 We're currently using identifierForVendor which was introduced with iOS6. Now iOS7 was released and i wonder if this identifier will stay the same for my apps after the update process. If i recover my device with iOS7 then it will obviously change, since it will be a fresh start. How about the update via iTunes / OTA? 回答1: I've also tested this behaviour with a little app that would just display identifierForVendor and it stayed the same before/after the update from iOS6 to iOS7. What's also