Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,591 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
Reply to bindings with custom fieldeditor problem
The sample code does two things you're missing:Boy did I feel stupid after reading that comment 😟I did read the documentation but for some reason I missed those 2 critical lines of code.1. It sets the fieldEditor property to YES.2. It creates one field editor and caches itAs it seems both are required!It now works as expected
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’17
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
677
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.6k
Mar ’19
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
410
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
How can I include two apps in one bundle?
I have a client who has two existing ATV apps, which are distinct apps, but are fairly similar. Their Apple rep suggested that they package both apps together and add some bootstrap code to switch between the two. I'm not sure how to do the bundling. I think I know how to do the switching (inside main.m before return UIApplicaitonMain). I just don't know what I need to do to add the two app binaries under one package. I found some articles suggesting that I make each app into a Framework. However, that seems unnecesarily too complex.Any ideas?Thanks
0
0
350
Oct ’15
reverseGeocode - always error 2 - watchOS2
Hey all,Still having the same issue on watchOS 2 GM as I've had with every watchOS 2 beta.When calling reverseGeocode within my watchOS 2 extension with a valid location, the geoCoder returns with kCLErrorDomain error 2 every time.This occurs on the simulator using the Apple simulated location, as well as on my actual Apple Watch in Santa Monica, CA.My code is not calling reverseGeocode more than once, so I do not see how it could be an issue of calling the reverseGeocode too often.CLLocationManager is able to successfully pull the location, and other NSURL requests complete without issue from my watchOS 2 extension, so network access does not appear to be an issue.The watchOS 2 component of my app has been ready for weeks now with the exception of this reverseGeocoding failure.=There was another thread regarding this same problem a few weeks back, but that seems to be dead now.Has anyone else encountered this problem and found a solution?
1
0
1.7k
Sep ’15
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:
Replies
Boosts
Views
Activity
Dec ’18
Reply to bindings with custom fieldeditor problem
The sample code does two things you're missing:Boy did I feel stupid after reading that comment 😟I did read the documentation but for some reason I missed those 2 critical lines of code.1. It sets the fieldEditor property to YES.2. It creates one field editor and caches itAs it seems both are required!It now works as expected
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’17
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
Replies
0
Boosts
0
Views
677
Activity
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
Replies
2
Boosts
0
Views
5.6k
Activity
Mar ’19
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
Replies
1
Boosts
0
Views
410
Activity
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!
Replies
1
Boosts
0
Views
1.9k
Activity
Sep ’15
How can I include two apps in one bundle?
I have a client who has two existing ATV apps, which are distinct apps, but are fairly similar. Their Apple rep suggested that they package both apps together and add some bootstrap code to switch between the two. I'm not sure how to do the bundling. I think I know how to do the switching (inside main.m before return UIApplicaitonMain). I just don't know what I need to do to add the two app binaries under one package. I found some articles suggesting that I make each app into a Framework. However, that seems unnecesarily too complex.Any ideas?Thanks
Replies
0
Boosts
0
Views
350
Activity
Oct ’15
reverseGeocode - always error 2 - watchOS2
Hey all,Still having the same issue on watchOS 2 GM as I've had with every watchOS 2 beta.When calling reverseGeocode within my watchOS 2 extension with a valid location, the geoCoder returns with kCLErrorDomain error 2 every time.This occurs on the simulator using the Apple simulated location, as well as on my actual Apple Watch in Santa Monica, CA.My code is not calling reverseGeocode more than once, so I do not see how it could be an issue of calling the reverseGeocode too often.CLLocationManager is able to successfully pull the location, and other NSURL requests complete without issue from my watchOS 2 extension, so network access does not appear to be an issue.The watchOS 2 component of my app has been ready for weeks now with the exception of this reverseGeocoding failure.=There was another thread regarding this same problem a few weeks back, but that seems to be dead now.Has anyone else encountered this problem and found a solution?
Replies
1
Boosts
0
Views
1.7k
Activity
Sep ’15