Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,534 results found

Post

Replies

Boosts

Views

Activity

Reply to Problems with randomised array items
You do not show the code where the UILabel is set, so it is difficult to be sure.Do you usevar question = [1+1=2, 2+2=22]somewhere ?But most likely you have a synchronization issue, because UILabel is not updated yet, but code has moved after. That's often the case when you have an alert and try to use the result of the alert outside of the alert code.There are several solution:- using completion handlers- setting semaphoresBut once again, need to see your code first.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’18
Apple Watch 2 Factor Authentification
I have changed my MacBook Air, the iMac and a iPhone 6S to 2 Factor Authentification. in iCloud Settings i can see my Devices. When i click on my Apple Watch, it says: This device can not be used to obtain an Apple ID code. See (german) Screenshot: http://i64.tinypic.com/2450q6h.png Is it possible to add an Apple Watch to 2 Factor Authentification? Tweak
1
0
548
Jul ’16
Two finger swipe on a UIImage
The code below allows the user to do a 2 finger swipe down on an imageView and thus presenting a popover/actionSheet. That process works fine. Normally it is possible to tap outside the popover/actionSheet to close it.The problem is that once the popover/actionSheet is presented, it doesn't allow tapping the background to close the popover/actionSheet. You actually need to tap inside the popover/actionSheet to close it.There are other places in the app that present a popover/actionSheet but these are presented using a simple button tap.Here's the really weird scenario. If I do the 2 finger swipe on the imageView and open the popover/actionSheet, the inability to tap the backGround is broken on all the other popover/actionSheet in the app too. If I bypass the 2 finger swipe on the imageView all of the other popover/actionSheet work as normal.I've stripped out all the code other than what's needed to present the popover/actionSheet. And I created a new project with o
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
807
May ’20
Two apps into one
Can we submit an app that shows a facade to select which app(web project) to go to for eg: If my app is Banking App can I have a home page that says Corporate Accounts or Credit CardsCorporate Accounts and Credit Cards are two separate web applications made using same technology stack wrapped in cordovaTo summarise I have 2 corodva apps and want to make them as 1 app
1
0
269
Jun ’15
combine two id<MTLTexture>
Hi, Perhaps the textures are too complicated for something like this to be done simply, but... I have two depth textures, same size, same pixel format, each created with a separate rendering pass. One to calculate shadows created by stationary objects, the other to calculate shadows created by moving objects. Is there an easy way to combine the two textures, so that I end up with a single texture that I can use sample_compare inside a shader? Or is the best way to pass both textures to the shader and do samplecompare twice? Thanks
0
0
649
Jul ’20
playgrounds/ learn to code 2/ 3 gems, 4 switches/ problem with conditons in while loop
hello all,I am at the beginning of learning swift with the ipad playgrounds.in the chapter, where you have to go through a labyrinth till you collected 3 gems and toggled 4 switches, I have the following problem.ar numberGem = 0 var numberSwitch = 0 } func direction() { if isBlocked && isBlockedLeft { turnRight() } else if isBlocked && isBlockedRight { turnLeft() } } func gemSwitchVar() { if isOnGem { collectGem() numberGem += 1 } else if isOnClosedSwitch { toggleSwitch() numberSwitch += 1 } } while numberGem < 4 && numberSwitch < 5 { gemSwitchVar() direction() moveForward() }the while loop always stops after the figure collected 3 gems. It does not continue till it also toggled 4 switches. I always thought that with AND both conditions had to be fullfilled. And the OR operator would display the behaviour it does now.I had the same problem with a while loop in an earlier chapter where I tried a while loop likewhile !isBlocked && !isBlockLeft && !isBlockedRightto m
2
0
5.5k
Mar ’19
If C static buffer exceed 249440 bytes, dispatch async get EXC_BAD_ACCESS code=2 on Intel simulator
Not too hopeful that anyone can explain this but here is goes. I have some C code being used from an iOS app in Swift. Logs in the C code are passed by a callback to Swift and put on a serial queue using: Log.serialQueue.async {} So, the C function could look like: int do_some_c_stuff(void) { log(Do some logging); } And in Swift we have something like this to process the log that came through the callback: class func log(_ message: String, logInfo: LogInfo = appLogInfo, type: OSLogType = .default) { Log.serialQueue.async { os.os_log(%@, log: logInfo.log, type: type, message) } } This works perfectly in all cases except one (Intel iPhone simulator only). Now, some C functions allocate a static buffer to parse incoming messages. Like this: int do_some_c_stuff(void) { log(Do some logging); char buf[100000]; } and here is the interesting part. If this buffer exceeds exactly 249440 bytes, any call to Log.serialQueue.async in the swift layer gets a EXC_BAD_ACCESS code=2 but only
5
0
1.1k
Mar ’23
Reply to How to Use eSIM api
We now have eSim with SM-DP+ and Activation Code (Matching Code) from our MVNO. Upon adding these two values manually in Settings Cellular Add Cellular Plans, eSim is added. How can we pass these two values to add eSim automatically directly to device without user manually entering these two values please? Thanks Samin918144598181
Apr ’21
Where's my code?
Seasoned C developer with i86 and embedded hardware but new to ios. I built a screen with two buttons in Swift. But where is the source code? I see source listings that look like frameworks but nothing that contains my two buttons. My next step is to assign a TCP/IP data string to each button. What library would be recommended for that? TIA
1
0
377
Dec ’21
Apple Configurator 2
I am able to update a device to iOS 9.0 using Apple Configurator 2. I can prepare a device and get it registered in my MDM (JAMF Casper). I can add an app to the device (iPad Air).However, when I try to launch any app added to the device I get a popup to log in to the iTunes store. If I hit cancel then the entire app closes. I can't get any apps to launch and run.Anyone else having these issues?I am running the released iOS 9, Apple Configurator 2 Beta 5 and OS 10.11 Beta (15A279b).Thanks!
1
0
1.9k
Sep ’15