Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,554 results found

Post

Replies

Boosts

Views

Activity

How do I run two ViewController simultaneously?
I'm trying to use ARWorldTrackingConfiguration and ARBodyTrackingConfiguration together. ARConfiguration here it says, a session can run only one configuration at a time. So, I made two ViewControllers that switches each ViewController through buttons but I can't run the two ViewControllers at the same. Is there any way to run two ViewControllers simultaneously or switching ViewControllers automatically?
1
0
596
Apr ’22
Can you detect a two-finger click?
I'd like to notice when a user clicks their Siri remote with two fingers on the trackpad instead of one. (A one-finger click increments; I'd like a two-finger click to decrement.) Is there a way to do this? A UITapGestureRecognizer with numberOfTouchesRequired set to 2 seems like the obvious solution, but it doesn't seem to be getting me anywhere.
3
0
851
Nov ’15
Learn to code
Hello Developers, I started learning how to code using Swift PlayGround on my iPad Pro. But in some levels , you know, there are no hints to anything to help you solve problems. Do you have any idea on how to learn coding from the beginning cuz I feel lost sometimes and I’m in (learn to code 2) level and I didn’t see how to take advantage of using what I’ve learned on an app, I’m not planning to develop a Game, although coding looks like a game to me ☺️, so can you help me guys on how and where to learn good, and what do you think of the Swift Playground as a start or is there a better way. !! thanks
1
0
645
Feb ’22
Regex code from WWDC sample code not working
If I past the samele code import RegexBuilder let fieldSeparator = /s{2,}|t/ let transactionMatcher = Regex { /CREDIT|DEBIT/ fieldSeparator One(.date(.numeric, locale: Locale(identifier: en_US), timeZone: .gmt)) fieldSeparator OneOrMore { NegativeLookahead { fieldSeparator } CharacterClass.any } fieldSeparator One(.localizedCurrency(code: USD).locale(Locale(identifier: en_US))) } It does not like the OneOrMore with the negative look ahead. Is there an updated example of this code from WWDC?
1
0
1.3k
Jun ’22
two finger tap - trackpad
I just installed the GM for El Capitan, and it appers that the two finger tap (not click) is no longer working on the external trackpad? I used to be able to just two finger touch the track pad and it would bring up the context menu. Now I have to actually click the trackpad with 2 fingers?
4
0
907
Sep ’15
Reply to Function not returning values if in a separate file
There are two problems here.1. You have 2 variables called 'scalaRiduz'. They may look the same, but they are completely different. You could have written:var scalaRiduz1111:Double = 0 … func scalaTrafila (…) { var scalaRiduz2222:[Double] = [0, 1, 2] … }Why? Because a 'var' statement always declares a new variable. In your existing code, the 'scalaRiduz' inside the function hides the 'scalaRiduz' outside the function. But they're still different variables.2. This isn't your real code. In your main program, your 'scalaRiduz' isn't even array — it has type Double, not [Double].Here's what I think happened. You had code like this, in a single file:var scalaRiduz:[Double] = [] func scalaTrafila (…) { scalaRiduz:[Double] = [0, 1, 2] // <-- Note that there is NO var } print (scalaRiduz[0]) // prints 0Then you split it into 2 files:var scalaRiduz:[Double] = [0] scalaTrafila () print (scalaRiduz[0])func scalaTrafila () { scalaRiduz:[D
Topic: Programming Languages SubTopic: Swift Tags:
May ’16
Reply to UIAlertController UIAlertAction
the alert action is displayed briefly then it disappears before the user has time to enter anything into the 2 text fields and before the OK button is pressed.I embedded your code in an @IBAction method, and I couldn't have find a behavior as such.The problem may very probably hide somewhere in the lines you have not shown yet.At least two lines of your code: foundLatitude.text = stringLatitude foundLongitude.text = stringLongitudedo not work as expected. (Or I may be mistaking your expectation for these two lines.)They should be in the action handler of OK.Generally, you should not write any code after calling presentViewController:animated:completion: .
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’15
Inference Provider crashed with 2:5
I am trying to create a slightly different version of the content tagging code in the documentation: https://developer.apple.com/documentation/foundationmodels/systemlanguagemodel/usecase/contenttagging In the playground I am getting an Inference Provider crashed with 2:5 error. I have no idea what that means or how to address the error. Any assistance would be appreciated.
1
0
537
Jul ’25
Apple Configurator 2 - iPad air 2 requires itunes login when starting app
Hi at all,thats my issue: I have two iPad 4 and two iPad air 2 devices, both with iOS 10.2.1. I am managing the devices with Apple Conf. 2 and roll out the same profile on all devices. When starting ⚠ (not purchase, download, etc.) an app, itunes login is required at iPad air 2, not at iPad 4.Because we offer the devices to our library users to learn and live with them, I want a free use of apps. If a user wants to buy apps additionally, he may login with his own account. As I said, it all works with iPad 4, but not with iPad air 2. Any ideas?thx, Olli
0
0
416
Mar ’17