Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,659 results found

Post

Replies

Boosts

Views

Activity

Move 2 UIImageview and repeating
Hey guys, I am new to code :) but not exactly that much new coz My first app is getting to be done to post to appstore :) Just little problem Using x-code and UIKit, I want to repeat 2 images for background of my app. I used a cadisplaylink timer to move them, and it is working, after the image1 goes offscreen, I remake it in new position and it is positioned right next to image2 but after 3 or 4 time of positioning, the images start to have distance between each other.How can I have them stick together again? if (bGround1.frame.origin.x <= -viewWidth) { bGround1.frame = CGRectMake (viewWidth, 0, bGround1.frame.size.width, bGround1.frame.size.height);} if (bGround2.frame.origin.x <= -viewWidth) { bGround2.frame = CGRectMake (viewWidth, 0, bGround2.frame.size.width, bGround2.frame.size.height);} Image link : http://i.stack.imgur.com/B72UY.png Plz tell me ifmore details are needed. Thanks for any help :)
0
0
386
Nov ’15
Swift 2 closure with throw
Hello guys,While using Swift 2 I got one problem – how to throw inside closure of function. Example:// this func can't be changed and modifiedfunc httpRequest(param:String, completionHTTP:(result:String) -> Void){ completionHTTP(result:some result)}// this func can be changed and modifiedfunc myFunc() throws { httpRequest(param1) { (result) -> Void in throw NSError(domain: MyDomain, code: 0, userInfo: [NSLocalizedDescriptionKey: Error description]) }}myFunc - gives error of invalid conversion from thowing function to non-throwing functionHow can I call throw inside of closure of non-throwing func?
10
0
3.6k
Aug ’15
iPad 2 in Bootloop
HelloI have updated the last week mine iPad 2 on the beta from iOS9.Yesterday I wanted mine iPad entsperren and it suddenly went out and then hung in a boat loop.I have already brought this iPad in the Recovery and Restore to mode and have restored about iTunes. After the restoration hangs iPad still in the loop.What can I do?Thanks in advanceGreeting Martin
3
0
443
Jul ’15
Reply to Where's my code?
I built a screen with two buttons in Swift. Do you mean you created 2 buttons in the storyboard ? . But where is the source code? To start with, you will not see any code when you create buttons (or objects) in Interface builder. What you do next usually: display the code of the view controller and the storyboard control drag from the button to the code to create an IBAction you will write the code to execute when tapping the button here if you need to access the button itself, control drag again to create an IBOutlet Note: you should study Intro to App development with Swift in Apple Books to learn the basics.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
WatchOS 2 and CFNetwork
The framework directory for Watch OS 2 has CFNetwork framework in it, but instead of header files there is a file called /WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CFNetwork.framework/CFNetwork.tbd.Presumably this is a shorthand method of saying TBD. Yet this obviously has a dramatic impact on whether something can be ported. Can we get a clearer picture of which APIs there are going to be included?
1
0
537
Jul ’15
Beta 2 Unresponsive
My watch has become completely unresponsive since upgrading to beta 2.First, the battery got low very quickly after just a few hours of use, after charging it, it restarted itself and showed the Apple Logo for a long time, now the screen is blank and the buttons are completely unresponsive (even when trying to force restart it), although my iPhone seems to be connected to it still.
3
0
634
Jun ’17
Shooting with 2 rear cameras
I was wondering if there's a way to shoot with two rear cameras simultaneously and recieve two discrete images from them?I saw that with iPhone 11 Pro and iOS 13, some apps like Filmic Pro will have access to two video streams from multiple cameras. Is that available to all developers or only Apple partners? If so, is the API available or will it be made available in the future?I'm looking to take two photos from rear facing cameras and applying post-processing to them seperately before merging them in our app.Also, related but seperate: is there any way to recieve rectification/calibration data from the individual device to account for alignment differences between individual units during manufacturing?
4
0
2.8k
Sep ’19
IPC between two processes
I am looking for a solution to transfer data between two completely separate processes (not from the same group). I did a lot of research, but the solutions were mostly for processes that are in a group. Is there a method? (It doesn't matter if the app is sandboxed, I can disable it). My goal is to communicate between a bundle(plugin) that is activated on the Mac login page and an XPC service and transfer data from the service to the bundle.
3
0
1.5k
Dec ’23
What is the order of didMoveToWindow for two views?
What is the calling order of didMoveToWindow for two views after switching between two ViewControllers. In my project,we need get the property of view.window to prejucduce if the view is in the window,when one ViewController transform to another viewController。 We would like to know how this behavior is defined
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
750
Jun ’23
Merge 2 Apple IDs
Now that Apple is allowing users to merge two Apple IDs, how does one remove/delete songs from the Primary Apple ID music library? Is it a no-no to merge two Apple IDs? The notes on merging suggest this is a problem but offer no workaround. The only option I can see is to hide songs. Is this sufficient to allow the merging of two Apple IDs?
1
0
117
Mar ’25
Move 2 UIImageview and repeating
Hey guys, I am new to code :) but not exactly that much new coz My first app is getting to be done to post to appstore :) Just little problem Using x-code and UIKit, I want to repeat 2 images for background of my app. I used a cadisplaylink timer to move them, and it is working, after the image1 goes offscreen, I remake it in new position and it is positioned right next to image2 but after 3 or 4 time of positioning, the images start to have distance between each other.How can I have them stick together again? if (bGround1.frame.origin.x <= -viewWidth) { bGround1.frame = CGRectMake (viewWidth, 0, bGround1.frame.size.width, bGround1.frame.size.height);} if (bGround2.frame.origin.x <= -viewWidth) { bGround2.frame = CGRectMake (viewWidth, 0, bGround2.frame.size.width, bGround2.frame.size.height);} Image link : http://i.stack.imgur.com/B72UY.png Plz tell me ifmore details are needed. Thanks for any help :)
Replies
0
Boosts
0
Views
386
Activity
Nov ’15
Swift 2 closure with throw
Hello guys,While using Swift 2 I got one problem – how to throw inside closure of function. Example:// this func can't be changed and modifiedfunc httpRequest(param:String, completionHTTP:(result:String) -> Void){ completionHTTP(result:some result)}// this func can be changed and modifiedfunc myFunc() throws { httpRequest(param1) { (result) -> Void in throw NSError(domain: MyDomain, code: 0, userInfo: [NSLocalizedDescriptionKey: Error description]) }}myFunc - gives error of invalid conversion from thowing function to non-throwing functionHow can I call throw inside of closure of non-throwing func?
Replies
10
Boosts
0
Views
3.6k
Activity
Aug ’15
iPad 2 in Bootloop
HelloI have updated the last week mine iPad 2 on the beta from iOS9.Yesterday I wanted mine iPad entsperren and it suddenly went out and then hung in a boat loop.I have already brought this iPad in the Recovery and Restore to mode and have restored about iTunes. After the restoration hangs iPad still in the loop.What can I do?Thanks in advanceGreeting Martin
Replies
3
Boosts
0
Views
443
Activity
Jul ’15
Reply to Where's my code?
I built a screen with two buttons in Swift. Do you mean you created 2 buttons in the storyboard ? . But where is the source code? To start with, you will not see any code when you create buttons (or objects) in Interface builder. What you do next usually: display the code of the view controller and the storyboard control drag from the button to the code to create an IBAction you will write the code to execute when tapping the button here if you need to access the button itself, control drag again to create an IBOutlet Note: you should study Intro to App development with Swift in Apple Books to learn the basics.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
WatchOS 2 and CFNetwork
The framework directory for Watch OS 2 has CFNetwork framework in it, but instead of header files there is a file called /WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CFNetwork.framework/CFNetwork.tbd.Presumably this is a shorthand method of saying TBD. Yet this obviously has a dramatic impact on whether something can be ported. Can we get a clearer picture of which APIs there are going to be included?
Replies
1
Boosts
0
Views
537
Activity
Jul ’15
Beta 2 Unresponsive
My watch has become completely unresponsive since upgrading to beta 2.First, the battery got low very quickly after just a few hours of use, after charging it, it restarted itself and showed the Apple Logo for a long time, now the screen is blank and the buttons are completely unresponsive (even when trying to force restart it), although my iPhone seems to be connected to it still.
Replies
3
Boosts
0
Views
634
Activity
Jun ’17
Two Apps of the same App?
Is it allowed to launch two Apps, which are the same Apps just in two Languages? F.x. ExampleApp in German and ExampleApp in English. This way there could be some features or Design changes in the German App which arent in the English app.
Replies
1
Boosts
0
Views
598
Activity
Oct ’17
Shooting with 2 rear cameras
I was wondering if there's a way to shoot with two rear cameras simultaneously and recieve two discrete images from them?I saw that with iPhone 11 Pro and iOS 13, some apps like Filmic Pro will have access to two video streams from multiple cameras. Is that available to all developers or only Apple partners? If so, is the API available or will it be made available in the future?I'm looking to take two photos from rear facing cameras and applying post-processing to them seperately before merging them in our app.Also, related but seperate: is there any way to recieve rectification/calibration data from the individual device to account for alignment differences between individual units during manufacturing?
Replies
4
Boosts
0
Views
2.8k
Activity
Sep ’19
SwiftUI LazyVGrid with two columns
lazyVGrid with two columns, is there a way to span the odd last item to span the two columns just to be symmetric🤔. Apple reminders app does exactly that but not sure if they use the LazyVGrid any pointers are very much appreciated.
Replies
2
Boosts
0
Views
1.6k
Activity
Jul ’20
IPC between two processes
I am looking for a solution to transfer data between two completely separate processes (not from the same group). I did a lot of research, but the solutions were mostly for processes that are in a group. Is there a method? (It doesn't matter if the app is sandboxed, I can disable it). My goal is to communicate between a bundle(plugin) that is activated on the Mac login page and an XPC service and transfer data from the service to the bundle.
Replies
3
Boosts
0
Views
1.5k
Activity
Dec ’23
Reply to Swift Playground “Learn to Code 2” expert command “turnLockUp()”
Expert.turnLockUp doesn’t seem to work in 5.1 Learn to Code 2.
Replies
Boosts
Views
Activity
Sep ’21
What is the order of didMoveToWindow for two views?
What is the calling order of didMoveToWindow for two views after switching between two ViewControllers. In my project,we need get the property of view.window to prejucduce if the view is in the window,when one ViewController transform to another viewController。 We would like to know how this behavior is defined
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
750
Activity
Jun ’23
Reply to Auto-Renewable subscription with trials or without, depending on user segment
As long as what differentiates users in Segment 1 and Segment 2 is something within the app then it is allowable. If a user gets into Segment 2 by, for example, sending you a check for $10 and getting a special code to unlock access to Segment 2, then no.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jun ’17
can 2 apps have the same name ?
can 2 apps have the same name ?
Replies
0
Boosts
0
Views
206
Activity
Nov ’20
Merge 2 Apple IDs
Now that Apple is allowing users to merge two Apple IDs, how does one remove/delete songs from the Primary Apple ID music library? Is it a no-no to merge two Apple IDs? The notes on merging suggest this is a problem but offer no workaround. The only option I can see is to hide songs. Is this sufficient to allow the merging of two Apple IDs?
Replies
1
Boosts
0
Views
117
Activity
Mar ’25