xcode9beta6

How to create a border for SCNNode to indicate its selection in iOS 11 ARKit-Scenekit?

假如想象 提交于 2019-12-30 04:24:08
问题 How to draw a border to highlight a SCNNode and indicate to user that the node is selected? In my project user can place multiple virtual objects and user can select any object anytime. Upon selection i should show the user highlighted 3D object. Is there a way to directly achieve this or draw a border over SCNNode? 回答1: You need to add a tap gesture recognizer to the sceneView . // add a tap gesture recognizer let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleTap(

CloudKit - “Invalid bundle ID for container”

心已入冬 提交于 2019-12-22 13:59:22
问题 I've just create a project in Xcode 9 beta 6 and add this code: let privateDB = CKContainer.default().privateCloudDatabase let greatID = CKRecordID(recordName: "GreatPlace") let place = CKRecord(recordType: "Place", recordID: greatID) privateDB.save(place) { (record, error) in if error != nil { let er = (error as! CKError).errorUserInfo print("Error: \n") print("CKErrorDescription: \(er["CKErrorDescription"]!)\n") print("ContainerID: \(er["ContainerID"]!)\n") print("NSDebugDescription: \(er[

Swift generics: Non-nominal type does not support explicit initialization

狂风中的少年 提交于 2019-12-20 02:27:38
问题 So I'm trying to understand generic protocols and classes: protocol ListPresenterType where View.PDO.SW == Dispatcher.SW { associatedtype Dispatcher: ListDispatcherType associatedtype View: ListViewType init(dispatcher: Dispatcher, state: @escaping (_ state: AppState)->(ListState<Dispatcher.SW>)) func attachView(_ view: View) ... } And I'm initiating it from another generic class: class AbstractListViewController<Presenter: ListPresenterType, PDO: ListPDOCommonType, ...>: ListViewType, ...

CloudKit - “Invalid bundle ID for container”

不想你离开。 提交于 2019-12-06 04:56:21
I've just create a project in Xcode 9 beta 6 and add this code: let privateDB = CKContainer.default().privateCloudDatabase let greatID = CKRecordID(recordName: "GreatPlace") let place = CKRecord(recordType: "Place", recordID: greatID) privateDB.save(place) { (record, error) in if error != nil { let er = (error as! CKError).errorUserInfo print("Error: \n") print("CKErrorDescription: \(er["CKErrorDescription"]!)\n") print("ContainerID: \(er["ContainerID"]!)\n") print("NSDebugDescription: \(er["NSDebugDescription"]!)\n") print("NSUnderlyingError: \(er["NSUnderlyingError"]!)\n") print(

How to create a border for SCNNode to indicate its selection in iOS 11 ARKit-Scenekit?

廉价感情. 提交于 2019-11-30 13:26:37
How to draw a border to highlight a SCNNode and indicate to user that the node is selected? In my project user can place multiple virtual objects and user can select any object anytime. Upon selection i should show the user highlighted 3D object. Is there a way to directly achieve this or draw a border over SCNNode? You need to add a tap gesture recognizer to the sceneView . // add a tap gesture recognizer let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleTap(_:))) scnView.addGestureRecognizer(tapGesture) Then, handle the tap and highlight the node: @objc func

UIBarButtonItem not clickable on iOS 11 beta 7?

蹲街弑〆低调 提交于 2019-11-29 05:51:01
There is another question on SO about this but this has nothing to do with it because I think this has to do with a beta version of iOS 11. I have these 2 UIButton s that are grouped inside a UIView . This UIView is put inside a UIBarButtonItem and the whole thing is set as Left Bar Button Items , using Interface Builder. Each button, when clicked, show a popover, triggered by storyboard. I am testing this on an iPad 3, running iOS 9, using Xcode 8. This works wonderfully. Now I have decided to test this on my iPad Pro 9.7" that is running iOS 11 beta 7. I am using Xcode 9 beta 6. When I run

UIBarButtonItem not clickable on iOS 11 beta 7?

三世轮回 提交于 2019-11-27 23:25:44
问题 There is another question on SO about this but this has nothing to do with it because I think this has to do with a beta version of iOS 11. I have these 2 UIButton s that are grouped inside a UIView . This UIView is put inside a UIBarButtonItem and the whole thing is set as Left Bar Button Items , using Interface Builder. Each button, when clicked, show a popover, triggered by storyboard. I am testing this on an iPad 3, running iOS 9, using Xcode 8. This works wonderfully. Now I have decided