Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to one to many relationship
Typically you have the rooms specified to contain a to-one relationship address which is the inverse of that to-many relationship rooms.That's the simplest way of differentiating the living room of addressX from the living room of address Y.And that lets you do all sorts of convenient things like select an address from your list of addresses; pass that reference to another table view controller, and have it specify a predicate for your fetch request so that it filters to just that address: // Given address as the user selected Address instance NSPredicate *predicate = [NSPredicate predicateWithFormat @address = %@, address];
Jun ’15
Error when updating application context
Has anyone else seen the following error (when using WCSession between phone and watch):Error when updating application context Error Domain=WCErrorDomain Code=7010 The operation couldn’t be completed. (WCErrorDomain error 7010.).I'm attempting to modify the code from potloc, which does not throw this error (when being used on the phone. Hard to tell on the watch as errors on the phone side don't show up). However, when I perform what I think is the same thing on my app, it gives me this error. The upshot is that I am not being streamed location data. It appears I get one shot (I get an updating location reply from the phone) and then it goes dead. I assume this error is the cause, but I don't really understand what it is, or how to resolve it.If anyone understands this I'd appreciate some pointers. Thanks!
1
0
2.0k
Jun ’15
Reply to Restore WatchOS to 1.0
So I've done that but I still find Siri is unusable. Are you saying you have the same performance as watchOS1 with Siri? Or are you saying that the features 'work'? Interested to know if it actually is attainable to get usability back!C
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Error when updating application context
The error 7010 means WCErrorCodePayloadUnsupportedTypes. What exactly are you trying to use as application context?From the docs: A dictionary of property list values. Are you sure the object is an NSDictionary containig only property list values?If you're trying to use something which is not a property list value you have to archive it into an NSData object.Dirk
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to updateApplicationContext -- what can be passed and how?
Hi,you're not able to use any object but property list values only. If you want to transfer a non property list object just wrap it into an NSData object: NSData* data = [NSKeyedArchiver archivedDataWithRootObject:someObject]; [[WCSession defaultSession] updateApplicationContext:@{@data: data} error:&error];That's it. On the other side of the line you have to unarchive the received data: id newData = [applicationContext objectForKey:@data]; if ((newData != nil) && ([newData isKindOfClass:[NSData class]])) { @try { id someObject = [NSKeyedUnarchiver unarchiveObjectWithData:newData]; if ([someObject isKindOfClass:[WhatEverClassYouNeed class]]) {You just need to check if the class you want to archive conforms to NSCoding protocol.Dirk
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Troubleshooting push notifications - response code 114
Hi there,I am working on setting up a simple push service for my application. I have looked in this document for any references to a list or a table of code responses that the APN Server returns but no luck. If anyone can reference a list of these code responses, that would be great!For example:when I establish a connection with the APN server with an empty token, I get code 84 which probably means missing token. So there seem to be a responses API mechanism in the back seen, but I can't find any docs for that API !I found a basic list of codes here
2
0
419
Jun ’15
Reply to Scene Kit Editor - selecting nodes
At the bottom of the viewport there are controls to set coordinate space in which you want to perform the transform on the object. Its probably set to local, which would rotate each object in its own local coordinate space independently. If you change this to parent or world, you should get the results you're looking for.Holding the Command key while rotating, seems to snap at 15 degree increments.
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’15
Reply to Subscripting into array with int-like variable
I would argue that the more Swift way of declaring something is by using a protocol-type, and then the one that is most generic. But maybe you are right.Normally I would not even notice, as we deal mostly with Ints. In this case however, I am working on a piece of code that really needs to be as fast as possible, and deals with UInt8, UInt16 etc. That's why I was wondering.Maybe Swift is not yet meant for performant low-level code, and I should stick to (Objective-)C for the critical parts if this turns out to be the case.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Signing up as both an external and internal tester breaks testflight
I've encountered a problem in Testflight where we had previously signed up an external tester using a non-Apple-ID related email address, then brought them into our internal team and invited them to the internal list via their actual Apple ID. After they attempted to install the app as an internal tester, they recevied an error message saying they had already been invited to test flight when they tried to download a newer version of the app. At this point, the user cannot install the app either as an external or internal tester.Attempts to delete the test flight profile, delete the tester from the interal and external lists, delete the app, and re-invite them only leads to the same error happening. The user is effectively locked out of test flight.Has anyone encountered this issue and found a workaround?Thanks!
2
0
2.7k
Jun ’15
CFBundleExecutable issues
I'm an app developer, and I'm looking to submit my app. But I've run into one snag. I get an Invalid Binary error whenever I submit the code. Apple sends an email to my Apple ID with ths error:Bad Bundle Executable - You must include a valid CFBundleExecutable key in your bundle's information property list file.
1
0
1.8k
Jun ’15
Reply to Signing up as both an external and internal tester breaks testflight
I was able to find a solution to the issue. I had to delete the user from both the internal and external tester lists, remove their account from Users & Groups in iTunes Connect, delete test flight from their phone, and then re-invite them via User & Groups. Once they signed up, I added them as an internal tester and sent them an invite. After they install Test Flight and load it, they get the error message that the invitation is invalid. At this point, you click on their apple ID in the button near the bottom of that screen. On the following screen, there should be at least one extra device listed near the bottom. Click edit, select all the devices in that list, and then select Remove in the top-left part of the screen. Then click done. At that point, the user will be able to install the app again.
Jun ’15
Getting selected Item of WKInterfacePicker
I am trying to use a WKInterfacePicker to select a string from a list. As of now, I am using an IBAction function and am updating a variable that stores the value for the picker. The variable, however, does not get updated if I spin the digital crown too quickly, even though the selected element in the picker differs from the value of the variable. Additionally, the selected element when the view is first loaded, sometimes differs from the initial value of the variable (e.g. 0 is selected in the picker, but the value of the variable is 2). I believe that my IBOutlets and IBActions are wired up correctly in IB. Is this a bug in the beta software, or am I using the WKInterfacePickerincorrectly? Here is the code for the WKInterfaceController:import WatchKit import Foundation class InterfaceController: WKInterfaceController { @IBOutlet var itemPicker:WKInterfacePicker? var pickerVal = 0 override func awakeWithContext(context: AnyObject?) { super.awakeWithContext(context) var itemArr = [WKPickerItem]() fo
2
0
2.2k
Jun ’15