ipad

CLLocation Manager not updated when App is in Guided Access mode

我的未来我决定 提交于 2020-01-25 02:07:57
问题 I kept Guided Access for iPad app. When the app is launched it asks for user's current location using CLLocationManager .This is working under Normal mode and updates user current location. But under Guided Access, popup ("Allow to access your location") is not shown and authorizationStatus is always kCLAuthorizationStatusNotDetermined and doesn't update current location of user . Couldn't understand what could be the problem.Searched a lot but couldn't find it. ViewController.m : - (void

Check whether a CLLocation is based on GPS or cellular

左心房为你撑大大i 提交于 2020-01-24 22:22:10
问题 With a 3G GPS device (i.e. iPad 3G) is there a way to know if a reported CLLocation is based on a GPS signal, and not the inaccurate cellular data? 回答1: The CLLocation class has a method called -horizontalAccuracy:. This will give you some idea of the radius of accuracy of that measurement. This is probably better than asking just "is it GPS" because GPS readings can also be pretty inaccurate, depending on receiving conditions and satellite visibility. 来源: https://stackoverflow.com/questions

Problem in playing & recording sound with two different players

对着背影说爱祢 提交于 2020-01-24 22:16:08
问题 I have implemented two AVAudioPlayer in my iPad project. I am playing sound with one player object and also simultaneously recording with the other player. First Scenario 1.Player1 is recording the words I am speaking. 2.Simultaneously player1 is also recording the music playing with player2. *This scenario is working fine if I am not plugging in any headset with microphone to my iPad. *But, if I plugged in the headset to my iPad & repeat the above scenario, the following points are observed:

Script For Assigning Viewport Meta Parameters, iPhone / iPad Conundrum

拜拜、爱过 提交于 2020-01-24 17:05:26
问题 I am using a JavaScript snippet to set the content parameters of the viewport meta tag, based on the width of the browser window. The script does almost what it should: it sets the initial scale value for any large screen device as 1, for iPad in portrait mode as 0.5, and for any devices smaller than 700px in screen width, back to 1. However, it seems to ignore the value assigned for iPad in landscape mode: 0.75. I suspect somehow I incorrectly the conditional for width in the landscape mode.

Missing Title Bar in Detail View of UISplitViewController

被刻印的时光 ゝ 提交于 2020-01-24 10:49:27
问题 I have a UISplitViewController embedded in a container view (because it's not at the root of my app), the mechanics of which are working nicely except for one issue: The navigation bar for the detail view is missing on the iPad. Initial setup is essentially as follows: In IB, drag a Split View Controller onto the storyboard, which creates a Split View Controller, a Navigation Controller, a Table View Controller (Master), a basic View Controller (Detail), and the segues connecting them. Add a

Crash analytics and reporting for iOS [closed]

雨燕双飞 提交于 2020-01-24 10:28:05
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . We are in the process of evaluating a 3rd party solution or custom solution for our iOS app for crash reporting. We are looking at

iPad 3 Retina Display, @2x images, and apps already in the store

核能气质少年 提交于 2020-01-24 03:28:25
问题 So some iPad in the future is probably going to have Retina Display. And Apple is most likely going to stick to the @2x paradigm. I've been expecting this for awhile and so I already have @2x artwork for iPad in my apps; some are already in the app store. My question is this: Will I need to recompile and/or resubmit apps to use said artwork when this mythical iPad is released for it to take advantage of these files? Or is this something baked into the OS itself and it should just

UISplitViewController portrait mode missing UIBarButtonItem

狂风中的少年 提交于 2020-01-24 02:43:19
问题 I have an application with a UISplitViewController, when I launch the app under potrait mode it's missing the "Group" UIBarButtonItem. I need to turn to landscape mode and back to potrait to make it appear. When I launch it in landscape mode it is there. Here's some screenshot to make it clear: This is when the application is launched at portrait mode This is in landscape mode, after rotating it from portrait mode: This is after rotating back to portrait mode from landscape mode: 回答1: The

移动端页面适配ipad?

有些话、适合烂在心里 提交于 2020-01-24 02:20:20
1、 @custom-media --sm ( min-width : 576px ); @custom-media --md ( min-width : 768px ); @custom-media --lg ( min-width : 992px ); @custom-media --xl ( min-width : 1200px ); .info-header { @media (--md) { width : 50% ;// ipad } margin-left : auto ; margin-right : auto ; border-bottom : 1px solid #dddddd ;//手机 } 2、 屏幕适配 根据不同屏幕动态写入font-size,以rem作为宽度单位,固定布局视口。 <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> 以640px设计稿和750px的视觉稿,网易这样处理的: var width = document.documentElement.clientWidth; // 屏幕的布局视口宽度 var rem = width / 7.5; //

Is rotation a requirement for iPad apps?

柔情痞子 提交于 2020-01-24 00:12:33
问题 Is it a requirement for iPad apps to be able to rotate? I am looking at a few apps, one example is http://squareup.com they only have one rotation, while others have rotation. What is the exact spec? 回答1: It's not required but I've seen apps butchered for it in reviews. I believe I saw that for the app Facepad. 回答2: You do not have to support rotation; however almost all apps do. 回答3: At least support 180° rotation. Preferably 360°, but this depends on the content your app shows . Fir example