ios11

ARKIT : place object on a plane doesn't work properly

ぐ巨炮叔叔 提交于 2019-12-06 14:29:06
I am learning ARKit and trying to place an object on a detected plane. But it doesn't work properly and there's a space between the plane and the 3D object. here's my code for the plane detection : func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { position = SCNVector3Make(anchor.transform.columns.3.x, anchor.transform.columns.3.y, anchor.transform.columns.3.z) guard let planeAnchor = anchor as? ARPlaneAnchor else { return } let plane = SCNPlane(width: CGFloat(planeAnchor.extent.x), height: CGFloat(planeAnchor.extent.z)) planeNode = SCNNode(geometry:

Restoring first responder after dismissing popoverview

情到浓时终转凉″ 提交于 2019-12-06 12:32:34
I have a text view on the main view controller. I have a bar button item on the view controller's navigation bar. When the app starts, I perform the following actions: Tap the text view to begin editing and to show the keyboard. Tap the bar button to show a popover view. Without dismissing the popover view, I dismiss the keyboard. Dismiss the popover view by tapping any other view on the screen. Before iOS 11, the keyboard will NOT show up again after Step 4. However, in iOS 11, it will show up. It seems that in iOS 11, it restores the first responder after dismissing the popover view. Here

iOS 11.1 UIImagePickerController video crop start time not movable

不羁岁月 提交于 2019-12-06 09:30:37
问题 We are displaying a UIImagePickerController for users to choose (and crop) a video for use within our app. Recently users have been experiencing issues trying to crop videos, with the start time handle becoming almost impossible to drag. It seems that the Photos app doesn't have this issue because the video timeline (and crop selection) is moved to the bottom of the screen. I assume this has to do with the new notification centre gestures that were added for the iPhone X. I believe this

Items in File provider extension for ios 11

社会主义新天地 提交于 2019-12-06 08:22:26
问题 I have an app with file provider extension in it. I tried giving support to the new file app with the ios 11 using this link I did what is instructed in this but no item is getting displayed. I have added this NSExtensionFileProviderSupportsEnumeration = YES in my plist as well. ProviderEnumerator is my NSFileProviderEnumerator class where ProviderItem is a NSFileProviderItem. inside my enumerator class I have this, func enumerateItems(for observer: NSFileProviderEnumerationObserver,

UITableview merging with the home indicator on iPhone X

怎甘沉沦 提交于 2019-12-06 08:15:18
问题 I have a UITableView created programmatically. This UITableView merges with the home indicator on an iPhone X device. How can I fix this issue? 回答1: Programatically, set bottom anchor of tableview with bottom anchor of SafeAreaLayout. Here is sample/test code, how to programatically set safe area layout with respect to interface elements. if #available(iOS 11, *) { let guide = view.safeAreaLayoutGuide NSLayoutConstraint.activate([ table.topAnchor.constraintEqualToSystemSpacingBelow(guide

ARKit billboarding effect with SceneKit

a 夏天 提交于 2019-12-06 07:28:11
I am looking to add a billboarding effect that is similar to this application: https://twitter.com/marpi_/status/897130955105644544 I would like SCNodes that use SCNText geometry to always face the camera. I have attempted with out success: SCNLookAtConstraint with sceneView.pointOfView as the target, but this rotates the node to face away from the camera, resulting in backwards text, and unable to change the nodes position or euler angle. Out of the box, an SKLabelNode will always face the camera in ARKit, which is exactly what I want, except using SCNText. You were almost there! Just modify

iOS 11 and XCode 9.3 - HTTP load failed

六眼飞鱼酱① 提交于 2019-12-06 07:16:28
iOS11 devices are occasionally issue this error: "HTTP load failed (error code: -1005 [1:54])." The app is connecting to https json web service and while its in the foreground everything runs smoothly (timer is doing the web service calls), but from time to time (cannot replicate the issue all the time) this error occurs when the app is moving from background to foreground. Whenever app is moving to background I invalidate the timer performing the calls, and whenever app is brought to foreground the timer is initialised again - everything runs smoothly most of the time. My JSON parsing

iOS11 location update after getting killed by user

江枫思渺然 提交于 2019-12-06 05:30:42
I'm implementing a non VOIP app in iOS 11. As per the nature of my App, I've implemented the startMonitoringSignificantLocationChanges(). All the implementation went well and it is working now. while terminating the app I'm calling startOrReStartSignificantLocationUpdate() and I'm restarting significantlocationupdate in didFinishLaunchingWithOptions also I'm updating location in server in didUpdateLocations event Location updates is reflected on my server when the App is in foreground or background. It is now reflects even if user kill the App manually. So it works with SLC but the problem is;

UICollectionView items order not reversed in right to left languages

心不动则不痛 提交于 2019-12-06 05:29:23
问题 I noticed a big issue where in right to left languages, the cells order is not properly reversed, only the alignment is correct. But only for horizontal flow layout, and if the collection view contain different cell sizes ! Yes, I know this sound insane. If all the cells are the same size, the ordering and alignment is good! Here is what I got so far with a sample app (isolated to make sure this is the actual issue, and not something else): (First bar should always be drawn blue, then size

How to prevent iOS11 Built in screen recording feature just like Amazon Prime for protected DRM content?

南楼画角 提交于 2019-12-06 04:59:28
WideVine iOS CDM Player is playing DRM Protected content. Now, iOS11 introduce a new built-in feature i.e Screen Recording. Using this feature a user can easily capture or record DRM Protected content. I used iOS11 Beta isCaptured and UIScreenCapturedDidChange Property and try to prevent DRM protected content to recorded, But This isCaptured and UIScreenCapturedDidChange working fine when the first time I Launch my Application. Now, when I Kill my running App(Terminate the application) and Launch again then my App doesn't receive any value for isCaptured and UIScreenCapturedDidChange. Now I