ipad

UIImagePickerController crashes app on iPad but not iPhone

ぐ巨炮叔叔 提交于 2020-01-15 12:15:56
问题 I've made an iPhone app that works perfectly on all iPhone versions I want to support. My app uses UIImagePickerController which again, works fine on iPhone. However, for some reason when I run my app on an iPad (because apple requires this) the app crashes when either of the below methods are called. - (IBAction) useCamera:(id)sender { if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { UIImagePickerController *imagePicker = [

CMMotionManager - getting heading using CMMotionManager exclusively

主宰稳场 提交于 2020-01-15 12:14:34
问题 I have managed to get compass heading using CLLocationManager but because my app already uses CMMotionManager I would like to measure heading using exclusively CMMotionManager. Like all Apple vague documentation, you have to guess how to use their APIs. I have tried to use this to measure heading [self.motionManager setMagnetometerUpdateInterval:1.0/30.0]; //30 Hz [self.motionManager startMagnetometerUpdatesToQueue:[NSOperationQueue currentQueue] withHandler:^(CMMagnetometerData

UIImagePickerController crashes app on iPad but not iPhone

主宰稳场 提交于 2020-01-15 12:13:29
问题 I've made an iPhone app that works perfectly on all iPhone versions I want to support. My app uses UIImagePickerController which again, works fine on iPhone. However, for some reason when I run my app on an iPad (because apple requires this) the app crashes when either of the below methods are called. - (IBAction) useCamera:(id)sender { if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { UIImagePickerController *imagePicker = [

iOS popovers as menu tutorial

£可爱£侵袭症+ 提交于 2020-01-15 11:44:46
问题 I am writing an iPad app and am very new to objective C. I am currently trying to use a popover as a menu within a view controller. I understand how to set the popup up and have a tableview in it for a user to select an item from. However, I am not sure how to then pass the information back to the container view which holds the popover. didSelectRowAtIndexPath will be called within the UITableViewController which is presumably inside the popover view controller. Can anyone point me in the

iPad App Portrait Only?

守給你的承諾、 提交于 2020-01-15 11:44:06
问题 My app is entirely designed for IOS6. I use an xib for the iPhone and another one for the iPad. My AppDelegate sets up a TabBarController, though there is no class for the TabBarController itself. The TabBarController has two tab items, 1 a NavigationController, and 1 a View Controller, each of which has its own class. I would like the iPad to be able to run in just Portrait mode, upside down, and normal. On the summary tab of Target in Xcode, I have supported interface orientations set to

Customize UIAlertButton through layoutSubviews => UIAlertButton class not found

一个人想着一个人 提交于 2020-01-15 11:42:49
问题 i'm trying to implement custom alert view using this tutorial. All in this tut work well, but it doesn't speak about customizing UIAlertButton. Then, i'm trying to customize it through layoutSubviews method: - (void)layoutSubviews { for (UIView *subview in self.subviews){ //Fast Enumeration if ([subview isMemberOfClass:[UIImageView class]]) { subview.hidden = YES; //Hide UIImageView Containing Blue Background } if ([subview isMemberOfClass:[UILabel class]]) { //Point to UILabels To Change

Customize UIAlertButton through layoutSubviews => UIAlertButton class not found

倖福魔咒の 提交于 2020-01-15 11:41:34
问题 i'm trying to implement custom alert view using this tutorial. All in this tut work well, but it doesn't speak about customizing UIAlertButton. Then, i'm trying to customize it through layoutSubviews method: - (void)layoutSubviews { for (UIView *subview in self.subviews){ //Fast Enumeration if ([subview isMemberOfClass:[UIImageView class]]) { subview.hidden = YES; //Hide UIImageView Containing Blue Background } if ([subview isMemberOfClass:[UILabel class]]) { //Point to UILabels To Change

Cannot “save for Enterprise Deployment”, ios ipa

狂风中的少年 提交于 2020-01-15 10:35:27
问题 I've developed a ionic 2 app which I want to be able to send through mail or host online somewhere as an iOS app for ipad - so I need to make it ipa . I've got an Apple Developer Enterprise Program account type, and XCode 8.2.1 . I've managed to archive the app with success but when I'm trying to export it I cannot use any method except "Save for Development Deployment" which indeed generates an ipa file, but when I try to install it on ipad disappear - the installation starts, works for a

webkitfullscreenchange event not firing on iPad

一个人想着一个人 提交于 2020-01-15 10:33:34
问题 I'm working on some video controls for the iPad. When the user clicks a button, the video plays and immediately goes fullscreen. When the user clicks the "Exit fullscreen" button, I want the video to pause. If I could disable the "Exit fullscreen" button and force the user to use the "Done" button I would, but that doesn't seem to be an option. My problem is that the webkitfullscreenchange event does not seem to fire on the iPad. It works flawlessly in Chrome on the desktop. I've read that

iOS8 Size-Classes and Popover Views

梦想的初衷 提交于 2020-01-15 07:10:29
问题 I had an issue with Popover on an iPad app I was working on recently...going to just post it here as I think it may help others. I'm using Xcode 6 and iOS 8 and Size Classes and the Popover View was built in a Storyboard. As my iPad App is in Regular/Regular Size Class all the time I built the Popover view in R/R too. No matter what I did with Constraints though, the popover just never looked right, it was a mess. So what was wrong?? 回答1: After some time the penny dropped to check the Any/Any