iphone-6

iOS 9 Spritekit Double Tap Not Working on iPhone 6S

99封情书 提交于 2019-12-23 12:37:52
问题 I have been building a SpriteKit game for a while now. Its a card game that allows double-tap on card sprites for specific behaviors. Now that we're in iOS 9, double taps do not work at all on iPhone 6s. Works fine on iOS8, all devices. In my SKScene , i'm using the touchesBegan method to detect taps: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint touchLocation = [touch locationInNode:self]; if(touch.tapCount==2) { NSLog(@

Can I Animate an image iOS8 LaunchScreen.xib

这一生的挚爱 提交于 2019-12-22 01:51:00
问题 Question: Are there ways to animate anything within the LaunchScreen.xib file of an Xcode 6 Project targeted to deploy for iOS 8.1+ ? Context: I'm looking to make simple animations to convey activity or serve as a distraction to the user while they wait... Examples: A Loading Bar Activity Indicator Animated GIF Move a UIImage across the Screen Rotate an Image 回答1: Nope. The Launch Image is shown only during the time period between when the user chooses to launch your app and when your app has

What setting determines whether an app gets scaled for iPhone 6 and 6plus?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 13:00:45
问题 So when I run my project on the simulator for iPhone 6, with a deployment target of 7.1 I'm expecting everything to Scale automatically for the larger screen size. But this is not happening. My UILabel which was previously horizontally in the center of a 320px wide storyboard screen, with a leading space constraint to the parent view, now shows up in the simulator with exactly that space constraint, instead of it being scaled. So it shows up off center, because the iPhone6 is wider. What

Snapshot methods broken on iPhone 6 device and simulator

旧街凉风 提交于 2019-12-21 06:58:50
问题 For some unknown reason there seems to be a possible bug with all screenshot methods on the iPhone 6 simulator (and device). Whenever I call any of the screenshot methods including: snapshotViewAfterScreenUpdates: resizableSnapshotViewFromRect: drawViewHierarchyInRect: with afterScreenUpdates set to YES, the screen flickers. If set to NO, then no flicker occurs, but I am unable to get the functionality that I need. These methods work fine with both iOS7.1 and iOS8 in all other simulators

Iphone 6 camera calibration for OpenCV

99封情书 提交于 2019-12-21 05:21:11
问题 Im developing an iOS Augmented Reality application using OpenCV. I'm having issues creating the camera projection matrix to allow the OpenGL overlay to map directly on top of the marker. I feel this is due to my iPhone 6 camera not being correctly calibrated to the application. I know there is OpenCV code to calibrate webcams etc using the chess board, but I can't find a way to calibrate my embedded iPhone camera. Is there a way? Or are there known estimate values for iPhone 6? Which include:

Iphone 6 camera calibration for OpenCV

谁都会走 提交于 2019-12-21 05:21:10
问题 Im developing an iOS Augmented Reality application using OpenCV. I'm having issues creating the camera projection matrix to allow the OpenGL overlay to map directly on top of the marker. I feel this is due to my iPhone 6 camera not being correctly calibrated to the application. I know there is OpenCV code to calibrate webcams etc using the chess board, but I can't find a way to calibrate my embedded iPhone camera. Is there a way? Or are there known estimate values for iPhone 6? Which include:

Correct Size for apple-touch-startup-image in iPhone 6, iPhone 6 Plus?

心不动则不痛 提交于 2019-12-20 01:07:41
问题 Wanting to see if my math and media queries are correct here, as I cannot find this info anywhere. <!-- iOS 8 iPhone 6 (portrait) --> <link rel="apple-touch-startup-image" href="/apple-touch-startup-image-750×1294.png" media="(device-width: 375px) and (device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)"> <!-- iOS 8 iPhone 6 (landscape) --> <link rel="apple-touch-startup-image" href="/apple-touch-startup-image-710x1334.png" media="(device-width: 375px) and

Detect iOS8 Reachability Gesture

半城伤御伤魂 提交于 2019-12-19 09:07:59
问题 Any ways to detect the new Reachability gesture of iOS8 in Objective-C? The gesture is activated double tapping the TouchID button on the iPhone6 and iPhone6Plus. 回答1: There are no public APIs for it. There are two related private API methods on UIApplication I can find (using either of these should get your app rejected from the App Store): _setReachabilitySupported: , which presumably would en/disable reachability (like Spotlight) _deactivateReachability , which would return the view to the

Simulator running in scaling mode for iPhone 6 Plus?

前提是你 提交于 2019-12-18 19:06:27
问题 My app starts and runs on the new iPhone 6 Plus (or iPhone 6) in the simulator, but elements that I know are supposed to be small on the big screen (i.e. hard coded CGRect s) are large, as if the whole app had just been scaled up for the larger screen. How can I get out of scaling mode in the simulator? 回答1: It looks like setting a launch screen file in the "App Icons and Launch Images" section of your project settings, or adding iOS 8 images to your launch image catalog, will enable "native"

iPhone 6/6 Plus: UITableView separator flickering and different thickness

心不动则不痛 提交于 2019-12-18 10:54:17
问题 I've got a UITableView with separator set to Single Line. On iPhones <= 5s everything looks fine, but on 6 and 6 Plus (device as well as simulator) the separators have a different thickness. It's even worse as they're flickering while scrolling which looks pretty bad. I don't set the height manually, so I have no idea what's causing this. As you can see, the first two lines are a little bit thicker than the next two. Now if I scroll, they change from thick to thin and back, so it looks like