Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,680 results found

Post

Replies

Boosts

Views

Activity

Reply to Using Swift, how do I *continuously* test for a GamePad being on/connected?
Stepping back from code for a moment ... What do I want to do? 1) upon initial start up of app, I want to wait for a gamepadconnected Event. 2) Once I get this Event, I immediately change a SKSpriteNode's color and then start looking for: a) button presses on the gamepad and b) a gamepaddisconnected Event 3) So while I am executing code based on 2(a), I receive 2(b) .. I immediately change the above color to something different, followed by looking for another gamepadconnected Event. Back-and-forth Back-and-forth.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Defining two XPC services in a single System Extension
I currently have two separate system extensions that I have to launch. One is a Content Filter system extension and the other is an Endpoint Security system extension. Both define their own separate XPC services, The Endpoint Security system extension defines it through NSEndpointSecurityMachServiceName and the Content Filter system extension through NetworkExtension -> NEMachServiceName. Due to the complicated process of having the user approve two extensions and remove two extensions on uninstall, I'm venturing down the path of combining the two into a single extension. In the interest of reducing the amount of code changes, I'm interested in keeping two XPC services in the one system extension. However, when I combine the code and then the plists to define both XPC services, I fail to create the XPC listener for the Endpoint Security mach service. Is what I'm doing possible? Two XPC services in a single extension? I'm not sure if th
7
0
1.4k
Sep ’20
TestFlight > Two Step Process for Users
We have our app in TestFlight. To have new users signup requires two steps (not user friendly). The user clicks our link or scans are QR code. They get the page to show they have to download TestFlight and then install our app. Once TestFlight is downloaded and the user opens it, there is no app visible. The user has to click the link or scan the QR code again for it to show up in TestFlight. Has anyone been able to resolve this issue? Or is this just the user experience?
0
0
516
Sep ’22
two factor / 2-factor authentication field missing on App Store and disable option missing under 'manage my ID'
Since updating to iOS beta 3 and enabling 2 factor authentication I've been royally screwed:The App Store doesn't have a field to enter the second code, which mean, for instance, I can no longer even download the current version of Xcode, becaue the app store tries to anthenticate my Apple ID and when the phone send me the second code, there's no field to imput it in the App Store.It also turns out the version of the 'Manage my Apple ID' website I am being loged into is not the usual one. It's a 'beta' version of maninging your Apple ID and among other things, surprise, it doesn't have an option to turn off 2 factor authentication.Has anyone ran into this issue?
6
0
742
Jul ’15
Rounding of floats to 2 decimals
Hi guys, I'm a complete noob when it comes to Swift but I would appreciate any help.The input value is set to be a float, but when displaying the calc results, I need it to be decimal style AND rounded up to the nearest 0.01.It currently rounds off to the nearest 3 decimals, but I need it to be two decimals. My code currently:func roundUp(number: Float, toNearest: Float) -> Float { return ceil(number / toNearest) * toNearest }let income = grossin - LocalGrossIncomeArray[5] + IntrestSAArray[3] - LocalGrossIncomeArray[9] - LocalGrossIncomeArray[8]roundUp(income, toNearest: 0.1) print(Income Round up value = (income))roundUp(grossin, toNearest: 0.1)print(grossin Round up value = (grossin))let numberFormatterIncome = NSNumberFormatter() numberFormatterIncome.numberStyle = .DecimalStyle IncomeLbl.text = R IncomeLbl.text = IncomeLbl.text! + numberFormatterIncome.stringFromNumber(income)!let numberFormatter = NSNumberFormatter() numberFormatter.numberStyle = .DecimalStyleGrossIncome.text = R Gr
1
0
6.2k
Sep ’16
Two subscriptions with trial periods
I would like to make two auto-renewable subscriptions (in one family of subscriptions).1) Monthly subscription + 1 month trial2) Yearly subscription + 1 month trial (or, may be, 2 months trial)My quastion:If a user switches form a monthly subscription to an annual subscription plan will she or he get an additional trial period which it set up for an annual subscription plan?I found a question which is almost similar to mine on the forum, but the question of that user has never been answered..
1
0
464
Apr ’16