Any idea when iOS 9 beta 2 comes out... And if it will contain a new music app...or fix the problem with email crashes as well as 3rd party apps?
Search results for
DTiPhoneSimulatorErrorDomain Code 2
158,680 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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[
It would help to see the relevant code for this, as it might be that something related to something you've coded has changed between the two versions. I notice you have 18.2 and 18.4. Is it broken on 18.3, too?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
From the Landmarks sample project, I tried a variation, to get two cells side by side in the List. This is the original with on cell per row as in the tutorial: struct LandmarkList: View { tt ttvar body: some View { ttttList(landmarks) { landmark in ttttttLandmarkRow(landmark: landmark) tttt} tt} } Surprisingly, the following variation works well to display 2 cells side by side: struct LandmarkList: View { tt ttvar body: some View { ttttList (0 ..< (landmarks.count+1)/2) { item in ttttttLandmarkRow(landmark: landmarks[2*item]) ttttttif 2*item + 1 < landmarks.count { ttttttttLandmarkRow(landmark: landmarks[(2*item)+1]) tttttt} tttt} tt} } I thus tried to go on and add navigationLinks… It works when adding a navigation link to the first cell only struct LandmarkList: View { tt ttvar body: some View { ttttNavigationView { ttttttList (0 ..< (landmarks.count+1)/2) { item in ttttttttNavigationLink(destination: LandmarkDetail()) { ttttttttttLand
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
I have auto-renewable subscriptions in my app. I've been using .manageSubscriptionsSheet to present a user with a variety of subscriptions and a possibility to cancel the current subscription. Now, I'm trying out the new StoreKit 2 (available in iOS 17.0+) - and it works great (and also looks nice), but it doesn't seem to support cancellation... I tried different options and couldn't make it show anything related to unsubscribing. One of the options I've tried was adding .storeButton(.visible, for: .cancellation) - but it doesn't seem to do anything. So the question is: is it not possible to let users unsubscribe from within the app with StoreKit 2? And if so, what's the recommended approach?
Maybe, those codes can help your: let object = MyObject(name: name 2) let predicate = #Predicate{ $0.name == name 2 } try? modelContext.delete(model: MyObject.self, where: predicate)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi all, Does anyone have familiarity with Metal 2 on Mac? We are working on a 3D rendering tool on Mac and are having major issues testing on older Macbooks using Metal's Performance Shaders (Macbook Pros Mid 2012 and 2015 running macOS 10.15) and newer MacBook Airs using Metal's Performance Shaders (Macbook Airs early 2015 running macOS 10.15). When testing rendering using examples from Apple or derived from Apple examples, the screens appear red on older MacBook Pros and black on Mac Book Airs. We have no issues testing on later model Macbooks or on iPads. We would appreciate any guidance to help us resolve this. It has held us up for months in testing with no resolution yet. Thanks so much and Happy New Year!
watchOS 2 does not have any kind of completion block in its animateWithDuration function. I'm working on a game that requires running code after an animation is completed. Are there any work arounds? Perhaps using key-value observation? The alternative would be to use a timer but that's non-ideal for obvious reasons.
i just did the iOS 9 beta 2 instal on my iPhone 6 and my iPad mini 3 and now neither of them will connect to any networks over seas. cell or wifi. any input would be greatly appreciated. thanks
Has anyone found the/a recommending way to use Keychain Services since Swift 2. The following code from Stack Overflow is from Swift 1.2 and still seems to work, but it's nothing I'd even come up with without help. let query = [ kSecClass as String: kSecClassGenericPassword as String, kSecAttrService as String: service, kSecAttrAccount as String: account, kSecReturnData as String: true ] var result: NSData? let status = withUnsafeMutablePointer (&result) { SecItemCopyMatching (query, UnsafeMutablePointer ($0)) }I'm wondering if there's now a clearer way.
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
Hi, I did update ipados 18 beta 2 yesterday and today i got 2 problem with my ipad: first my system data is over 100gb even 170gb. second my ipad alway restart when i use it about 15 minutes and when i don't use it still continues to word. This ipad is my first time buy and use it. I really angry about that. I swear I will never update beta versions after this bug is fixed. I got third problem a message saying my ipad display is not recognized while I haven't fixed anything yet. What’s wrong with my ipad now bruh😩
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:
Hi All,just installed watch beta 2 - not receieving any notifications on the watch since.weather & stock details are showing on complications but thats it - any workarounds or ideas to fix?i have tried resetting the watch.Oli