ios11

UIGestureRecognizer oneFingerForcePress: crash on iOS 11

孤街浪徒 提交于 2019-12-23 08:57:23
问题 We just got some weird crashes feedback on iPhone device iOS 11. Here is a information: UIKit: -[_UIKeyBoardBasedNonEditableTextSelectionGestureCluster oneFingerForcePress:] I just can't figure it out what UIKeyBoardBasedNonEditableTextSelectionGestureCluster is. Have any idea? 来源: https://stackoverflow.com/questions/46443341/uigesturerecognizer-onefingerforcepress-crash-on-ios-11

iOS 11 prefersLargeTitles Weird Transition

杀马特。学长 韩版系。学妹 提交于 2019-12-23 08:00:08
问题 So I'm having a weird issue with the new large titles in iOS 11. Instead of me trying to badly and confusingly explain the issue here is a 10-second screen recording of what is happening: Screen recording of issue on YouTube As you can see there is a weird black bar that appears when transitioning between a view controller that has navigationItem.largeTitleDisplayMode = .never And one that is set to .always Thanks in advance! 回答1: Before the transition set this: self.navigationController?

UIImagePickerControllerEditedImage edited image offset for iOS 11

家住魔仙堡 提交于 2019-12-23 07:26:56
问题 I'm using a UIImagePickerController with allowsEditing enabled to share images in an App, but found that cropped image is offset for devices running iOS 11 only. My UIImagePickerControllerDelegate implementation is quite simple, just standard actions: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { let image = info[UIImagePickerControllerEditedImage] as! UIImage imageView.image = image picker.dismiss(animated: true,

Ambiguous use of play of MPMusicPlayerController in iOS11, swift4

陌路散爱 提交于 2019-12-23 03:51:59
问题 I'm running the Apple iOS11 example Adding Content to Apple Music on Xcode Version 9.0 beta 3 (9M174d) . I get a Ambiguous use of 'play() in /adding-content-to-apple-music/AppleMusicSample/Controllers/MusicPlayerManager.swift:78:9: Ambiguous use of 'play()' The suggested solutions to explicitly define the selector in order to avoid the ambiguity like: let play = #selector(musicPlayerController.play) did not work in this case. The MPMusicPlayerController instance in the MusicPlayerManager

How to get rid of safeAreaInsets on UIScrollview (iOS 11, iPhoneX)

给你一囗甜甜゛ 提交于 2019-12-23 03:19:39
问题 I have a horizontal paging UIScrollview , following is my VFL constraints for leading/trailing H:|-0-[ScrollView]-0-| (aligned to superview). I have left/right safeAreaInsets on landscape orientation in iPhone X. Is it a bug? or I am missing any Apple way that these insets will not be applied when we do not need? 回答1: I am using following to skip content inset adjustment: UIScrollview.contentInsetAdjustmentBehavior = .never I found that in iOS 11 UIScrollViewContentInsetAdjustmentBehavior

How to place 3D model using ARKit iOS 11 with some custom background view without using camera?

六月ゝ 毕业季﹏ 提交于 2019-12-23 02:36:05
问题 I am working on an Augmented Reality iOS app for which i am using ARKIT of iOS 11 beta. I am using ARSCNView(SceneKit) to render my .scn object. I have followed the sample given by apple in order to create an ARSession(https://developer.apple.com/sample-code/wwdc/2017/PlacingObjects.zip). Is it possible to place the 3D model with custom background instead of camera? Like user can select the background color or can provide custom 2D photos as background? 回答1: Your view has a scene property

Xcode 9 borderColor doesn't work in User Defined Runtime Attributes

橙三吉。 提交于 2019-12-23 01:38:30
问题 I'm using this CALayer extension: var borderUIColor: UIColor { set { self.borderColor = newValue.cgColor } get { return UIColor(cgColor: self.borderColor!) } } I thought that maybe because of this extension my borderColor of the Submit button from the bottom of the page doesn't change to white (as I want it to be): But no, I hooked up an IBOutlet and tried to set directly the color like this: submitButton.layer.borderColor = UIColor.white.cgColor Did it in viewDidLoad , viewWillAppear and

ARKit billboarding effect with SceneKit

可紊 提交于 2019-12-22 18:43:21
问题 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

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

此生再无相见时 提交于 2019-12-22 17:05:50
问题 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

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

别说谁变了你拦得住时间么 提交于 2019-12-22 17:05:32
问题 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