Search results for

SwiftUI List performance

50,609 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS 9 & Apple Music
I actually don't have a problem with people doing that as long as they accept the risks and consequences.What I do have a problem with is the endless complaining that certain features don't work, that performance isn't up to snuff, etc. IT'S A BETA. SOME STUFF IS NOT GOING TO WORK.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Bonjour detection
To continue on my investigations, I think that using Bonjour would be quite impossible in my case because I want to know when people are home or not (with their approval of course, and they will be aware of that).But if the phone advertises only while awake (so, when the user is doing something or if a push notification arrives and turns on the CPU and WiFI chip for a few seconds), it means that using Bonjour would not be reliable at all. The system would think that the user left home every 30 seconds when the phone goes into sleep and stops Bonjour services.I was thinking using other things, and I thaught about pinging and/or using other ports that would maybe stay open in sleep mode. I understand that iOS stays in permanent connection with the push notification servers, so I thaught it would maybe keep some other ports pen as well ?Where can I find a complete listing of used ports by iOS ? With details about witch port is used for what and when ?Thank you.
Jun ’15
How do I map() an array of dictionaries
I'm querying core data to get back my entries like this:let request = NSFetchRequest(entityName: TeamPerson) request.resultType = .DictionaryResultType request.returnsDistinctResults = true request.predicate = NSPredicate(format: team == %@, team) request.propertiesToFetch = [person.first, person.last, person.sql_ident] if let results = team.managedObjectContext?.executeFetchRequest(request, error: nil) as? [[String : AnyObject]] {So now I have an array of dictionary objects as the results variable. Now I want to pass that through map so that I get back a tuple with a formatted name and an integer. I tried this: results.map { (dict: [String : AnyObject]) in let formatted = Person.formattedNameWithFirst(dict[person.first], last: dict[person.last]) (formatted, dict[person.sql_ident]) }But the compiler complains that Cannot invoke 'map' with an argument list of type '(([String : AnyObject]) -> _)'
1
0
227
Jul ’15
Production OS X app won't run on some systems: "unidentified developer"
I was putting the final touches on my production build scripts when I discovered that the apps I'm producing won't run on some machines.My final build target builds that products for distribution (DEPLOYMENT_POSTPROCESSING=YES, Target=Deployment). These are then packaged in a disk image.I can open the disk image on my computer and run all of the apps. Note that some of the app bundles include privileged helper tools that must be correctly signed, and apparently they are because they get installed.I then copy the disk image to three other test systems (OS X 10.7, 10.9, and 10.10) and try to run them there. None of the apps will launch. I get a message that they are from an unidentified developer. (Note that all of these systems, including mine, only allow App Store and identified apps to be launched.)If I perform a codesign --verify or codesign --display -r- and dump the signing information for the apps, everything looks like it's been signed. (If I do the same to an Apple app like Numbers, I get a ve
6
0
1.1k
Jul ’15
Can I use CLVisit to get pre-app visit history?
I think the answer is probably no, but I'd like confirmation and any other ideas people may have. I need the functionality offered by CLVisit, i.e. A list of visited addresses, but I need the list almost as soon as my app fires up for the first time. So I don't have the luxury of building up the history myself, and so I was hoping to be able to access the visit history that has been recorded by the OS. We know the OS does record it because the list is available to users in the privacy settings. Does anyone know if this is possible OR if there is another API that will give this info?
0
0
273
Jul ’15
Reply to Why can't I make Array<T: Equatable> conform to Equatable?
Just to clarify: I only wrote Array<T: Equatable> as a short/sloppy way of saying Array<T> where T (the element type, Element) conforms to Equatable.I think the syntax would probably be closer to one of the two alternatives I gave in the original post. The reasons for that can perhaps be seen by looking at this:// Here's is how it's currently possible (in Swift 2) to extend Array<T> where T (the element type, Element) conforms to Equatable. extension Array where T: Equatable { func countElementsEqualTo(value: Element) -> Int { // This method is only available for arrays where the element type (T / Element) conforms to Equatable. return self.reduce(0) { $0.1 == value ? $0.0 + 1 : $0.0 } } } let a1: [Int] = [2, 8, 2, 2, 7, 3, 2, 6] let a2: [Any] = [one, 2, 3.0, UInt8(4)] print(a1.countElementsEqualTo(2)) // 4 // print(a2.countElementsEqualTo(2)) // Error (as expected, since Any doesn't conform to Equatable)So, since the above is how the syntax is for extending Array<T>'s with constrai
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Is it okay to submit multiple apps with roughly the same codebase?
The mistake you're making is one of many possibilities:Submitting the applications under your account, instead of the client's accountNot submitting these applications through the B2B program and instead trying to submit them to the regular App StoreSubmitting these applications through the App Store (B2B program or not) instead of licensing the application to the hospital and advising the hospital how to set up an Enterprise distribution systemOtherwise:1. Review guideline 2.20: Developers spamming the App Store with many versions of similar Apps will be removed from the iOS Developer Program2. From the iOS Program Agreement:“You” and “Your” means and refers to the person(s) or legal entity (whether the company, organization, educational institution, or governmental agency, instrumentality, or department) that has accepted this Agreement under its own developer account and that is using the Apple Software or otherwise exercising rights under this Agreement.Note: For the sake of clarity, You may authorize con
Jul ’15
App Transport Security and e-commerce
Having carefully worked through Apple's Technical Note I proudly labelled my app to allow insecure access to our own site (which doesn't encrypt) while leaving App Transport Security at its default setting for other sites. This would allow secure access to Worldpay's site, through which we do all our outside App Store payments.This worked perfectly, up to the moment I tried it. It connected to our own site without trouble (so my info.plist setting was correct) and then failed to get through to Worldpay. It turns out that none of Worldpay's cipher suites offer forward secrecy. I have sent a report to Worldpay and I am sure that they will do something about it soon.But this raises a question which I'd like other developers' perspective on. When one makes a payment through Worldpay (or another payment processor), that is not the only site involved. You will probably have noticed that from time to time your own bank inserts its own page, from its own server, into the purchasing process, for extra security. There
0
0
361
Jul ’15
Reply to Test Flight not processing Build
I think something is up with Testflight as of yesterday. I've been getting all sorts of errors about it being unavailable. Also, one weird thing I noticed was an app I uploaded yesterday showed Created where it usually shows up as Uploaded and then Processing shortly after that. It stayed Created for quite awhile, and then showed up in the list to submit for review. So it was in both places, and stayed that way. Today I sent a new update and it cleared the old version out and the processing of the new build happened quickly like normal. Unfortunately I keep getting an error on my iPhone saying Testflight is unavailable. So I can't install it.
Jul ’15