Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,592 results found

Post

Replies

Boosts

Views

Activity

two binded pickers
I'm trying to create 2 pickers, one that when updated changes the values of the second picker based on the index of the first picker...When I change the value of the first picker, the second picker updates accordingly.The issue? When I select an item from the second picker, I get index out of range. The error is obvious, there are more items in the second picker then the first and they are both binded to the same dataset..So, when $selectedSubsection changes in the first picker, the second picker get's the according data.Now, how do I allow the second picker to make some choices on a new content so that $selectedSubsection doesn't change?Picker(selection: $selectedSubsection, label: Text(Subsection)) { ForEach(0 ..< self.subsections.count) { Text(self.subsections[$0].name) }} Picker(selection: $selectedSubsection, label: Text(Subsection)) { ForEach(0 ..< self.subsubsections.count) { if self.subsubsections[$0].belongs_to == self.subsections[self.selectedSubsection].id { Text(self.subsubsections[
0
0
426
Feb ’20
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
479
Apr ’16
Promo Code problems
We developed an app with in-app purchases (https://itunes.apple.com/us/app/baby-exercises-and-activities/id853013104) but promo codes doesn't seem to work properly.We have multiple devices on the same Apple ID.If I claim a promo code on device 1, restore purchases, the content is not unlocked.But if I restore on device 2, the content is unlocked.And again, if claim a promo code on device 2 the content is locked, but unlocked on device 1 after I restore purchases.After this, if I restore purchases on a third device, both is unlocked, but only on this device.The app is made with React Native and uses react-native-iap for handling in app purchases.We've put on some logging to be able to debug this in production, and we can confirm, the only product id that is returned is the one unlocked from the other device.Any support would be appreciated.
3
0
2.4k
Aug ’18
Learn to Code 1 crashed
I was playing around in Learn to Code 1 out of boredom, and I managed to crash the second page... I used the code below, and it worked on a subsequent run, so I'm not entirely sure what happened.func moveForward(_ spaces: Int) { for _ in 0..<spaces { moveForward() } } moveForward(2) turnLeft() moveForward(2) collectGem()
0
0
1.1k
Apr ’19
Using 2 Magic Trackpads
For my application I need to use simutaneously 2 Trackpads (Magic Trackpad-2s), one for each hand, and need to have the (x, y) coordinates of the touch positions of up to the 10 fingers.Is this possible? If yes how to proceed?Thank you
1
0
274
May ’16
Reply to What is matchingSignature in LibraryItem
I've played with this a little bit and have a few guesses. My first is that the code was copy-pasta from Snippets, where a matching signature is used for code completion. To look at this yourself put a simple statement somewhere in code, select it, contextual popup menu > create code snippet. Edit the completion (for example, to snozzleberry). Then type snozzleberry in code and it will automatically update itself to the original statement. In such a case, the matching signature is the custom completion. My second guess is that it should work exactly like snippets do but for modifiers, where base is used for in-place substitutions but it hasn't been finished yet. If so, you can have your matchingSignature be snozzleberry, and if your code is base.setWidth(2 * base.size), then it would modify with the two base substitutions.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’20
Error in Lesson 16 QuestionBot 2
Apple developed Project files from Intro to App Development Lesson 16 on QuestionBot 2 are giving me errors as follows:The project will build and run fine. It will also answer the first question. However, asking a 2nd question causes an error of Thread 1: signal SIGABRT. This is a file straight from the Apple Tutorial. Suggestions?Project files give warnings for depricated code are given as follows: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Suggestions?Thanks,Mike
7
0
2.1k
Jan ’18
How can I convert 2 dictionaries into an array Objects?
I've been trying to accomplish this but I haven't been to able do so.I have two dictionaries where certain values may be repeated it another dictionary (that is the key that represents that dictionary) for example:var foodId_QtityDict = [String: Int]() var productNamesDict = [String: String]()dump from my 2 dictionaries which I filled from network data using Alamofire▿ 2 key/value pairs ▿ [0]: (2 elements) - .0: 6 < 6 is here - .1: 1 < there is only 1 element of id 6 ▿ [1]: (2 elements) - .0: 5 - .1: 2 < there are 2 elements of id 5---Second dictionary▿ 2 key/value pairs ▿ [0]: (2 elements) - .0: 6 < 6 is also here - .1: Burrito ▿ [1]: (2 elements) - .0: 5 - .1: TacosI want to do the following: use a struct or a class to create an array of objects based on those two dictionaries but I don't want to repeat the ID's ( number 6 and number 5 in this case)For this example I should have an array of two
1
0
348
Jan ’16
Adapting between two different UIPresentationController
I would like to adapt between two different `UIPresentationController`, according to the current trait collection. For example, the two controllers could be `UIPopoverPresentationController` for any traits and a custom `UIPresentationController` for compact horizontal traits (e.g. iPhone).Unfortunately this doesn't seem possible in the latest iOS 8. In particular:You can set a `UIAdaptivePresentationControllerDelegate` to swap out the presentation style, but only permits the standard full screen presentation controller.You can choose which presentation controller to use just before presenting the view controller, but this doesn't actually adapt after presenting when the traits collection changes e.g. in iPad multitasking or orientation change.Any suggestions?CheersGlen LowPixelglow Softwareget.instaviz.com
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
935
Jul ’15
two binded pickers
I'm trying to create 2 pickers, one that when updated changes the values of the second picker based on the index of the first picker...When I change the value of the first picker, the second picker updates accordingly.The issue? When I select an item from the second picker, I get index out of range. The error is obvious, there are more items in the second picker then the first and they are both binded to the same dataset..So, when $selectedSubsection changes in the first picker, the second picker get's the according data.Now, how do I allow the second picker to make some choices on a new content so that $selectedSubsection doesn't change?Picker(selection: $selectedSubsection, label: Text(Subsection)) { ForEach(0 ..< self.subsections.count) { Text(self.subsections[$0].name) }} Picker(selection: $selectedSubsection, label: Text(Subsection)) { ForEach(0 ..< self.subsubsections.count) { if self.subsubsections[$0].belongs_to == self.subsections[self.selectedSubsection].id { Text(self.subsubsections[
Replies
0
Boosts
0
Views
426
Activity
Feb ’20
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..
Replies
1
Boosts
0
Views
479
Activity
Apr ’16
Promo Code problems
We developed an app with in-app purchases (https://itunes.apple.com/us/app/baby-exercises-and-activities/id853013104) but promo codes doesn't seem to work properly.We have multiple devices on the same Apple ID.If I claim a promo code on device 1, restore purchases, the content is not unlocked.But if I restore on device 2, the content is unlocked.And again, if claim a promo code on device 2 the content is locked, but unlocked on device 1 after I restore purchases.After this, if I restore purchases on a third device, both is unlocked, but only on this device.The app is made with React Native and uses react-native-iap for handling in app purchases.We've put on some logging to be able to debug this in production, and we can confirm, the only product id that is returned is the one unlocked from the other device.Any support would be appreciated.
Replies
3
Boosts
0
Views
2.4k
Activity
Aug ’18
Learn to Code 1 crashed
I was playing around in Learn to Code 1 out of boredom, and I managed to crash the second page... I used the code below, and it worked on a subsequent run, so I'm not entirely sure what happened.func moveForward(_ spaces: Int) { for _ in 0..<spaces { moveForward() } } moveForward(2) turnLeft() moveForward(2) collectGem()
Replies
0
Boosts
0
Views
1.1k
Activity
Apr ’19
Using 2 Magic Trackpads
For my application I need to use simutaneously 2 Trackpads (Magic Trackpad-2s), one for each hand, and need to have the (x, y) coordinates of the touch positions of up to the 10 fingers.Is this possible? If yes how to proceed?Thank you
Replies
1
Boosts
0
Views
274
Activity
May ’16
App In-Review for 2 days
I submitted my appa for review several days ago, and it moved to In-Review. Cool, but it has been stuck their for 2 days. I hve never seen it go more than a few hours in that status. Anyone else seeing this problem or am I stuck? Should I pull it and resubmit?
Replies
1
Boosts
0
Views
167
Activity
5d
Reply to What is matchingSignature in LibraryItem
I've played with this a little bit and have a few guesses. My first is that the code was copy-pasta from Snippets, where a matching signature is used for code completion. To look at this yourself put a simple statement somewhere in code, select it, contextual popup menu > create code snippet. Edit the completion (for example, to snozzleberry). Then type snozzleberry in code and it will automatically update itself to the original statement. In such a case, the matching signature is the custom completion. My second guess is that it should work exactly like snippets do but for modifiers, where base is used for in-place substitutions but it hasn't been finished yet. If so, you can have your matchingSignature be snozzleberry, and if your code is base.setWidth(2 * base.size), then it would modify with the two base substitutions.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’20
Error in Lesson 16 QuestionBot 2
Apple developed Project files from Intro to App Development Lesson 16 on QuestionBot 2 are giving me errors as follows:The project will build and run fine. It will also answer the first question. However, asking a 2nd question causes an error of Thread 1: signal SIGABRT. This is a file straight from the Apple Tutorial. Suggestions?Project files give warnings for depricated code are given as follows: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Suggestions?Thanks,Mike
Replies
7
Boosts
0
Views
2.1k
Activity
Jan ’18
How can I convert 2 dictionaries into an array Objects?
I've been trying to accomplish this but I haven't been to able do so.I have two dictionaries where certain values may be repeated it another dictionary (that is the key that represents that dictionary) for example:var foodId_QtityDict = [String: Int]() var productNamesDict = [String: String]()dump from my 2 dictionaries which I filled from network data using Alamofire▿ 2 key/value pairs ▿ [0]: (2 elements) - .0: 6 < 6 is here - .1: 1 < there is only 1 element of id 6 ▿ [1]: (2 elements) - .0: 5 - .1: 2 < there are 2 elements of id 5---Second dictionary▿ 2 key/value pairs ▿ [0]: (2 elements) - .0: 6 < 6 is also here - .1: Burrito ▿ [1]: (2 elements) - .0: 5 - .1: TacosI want to do the following: use a struct or a class to create an array of objects based on those two dictionaries but I don't want to repeat the ID's ( number 6 and number 5 in this case)For this example I should have an array of two
Replies
1
Boosts
0
Views
348
Activity
Jan ’16
Adapting between two different UIPresentationController
I would like to adapt between two different `UIPresentationController`, according to the current trait collection. For example, the two controllers could be `UIPopoverPresentationController` for any traits and a custom `UIPresentationController` for compact horizontal traits (e.g. iPhone).Unfortunately this doesn't seem possible in the latest iOS 8. In particular:You can set a `UIAdaptivePresentationControllerDelegate` to swap out the presentation style, but only permits the standard full screen presentation controller.You can choose which presentation controller to use just before presenting the view controller, but this doesn't actually adapt after presenting when the traits collection changes e.g. in iPad multitasking or orientation change.Any suggestions?CheersGlen LowPixelglow Softwareget.instaviz.com
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
4
Boosts
0
Views
935
Activity
Jul ’15