Dear all,
I would like to receive some advice about how to develop an interactive tutorial inside an app.
Thanks in advance,
Mirko Franco
Post
Replies
Boosts
Views
Activity
Dear all,
I ask you for some help after receiving an error while I was executing the following piece of code.
session = MCSession(peer: MCPeerID(displayName: UIDevice.current.name), securityIdentity: nil, encryptionPreference: .optional )
session?.delegate = self
assistant = MCAdvertiserAssistant(serviceType: "PlayWithEyes", discoveryInfo: nil, session: session!)
browser = MCBrowserViewController(serviceType: "PlayWithEyes", session: session! )
browser?.delegate = self
assistant!.start()
browser?.modalPresentationStyle = .formSheet
present(browser!, animated: true, completion: nil)
I received the following runtime error:
Exception NSException * "-[MCAdvertiserAssistant advertiser:didNotStartAdvertisingPeer:]: unrecognized selector sent to instance 0x280130ee0" 0x0000000282461e00 Has anyone of you some ideas?
The code works well on the simulator, but no in the physical device.
Thank you in advance,
Mirko Franco
Good morning,
I would like to ask a question about a small problem that I am facing with.
I would like to change a part of the view after a picker selection and the only way comes to my mind is an if chain to check the selected value, according to .tag() modifier. In this way, code is very dirty and complex.
Is there an easy way to do that?