Search results for

SwiftUI List performance

50,607 results found

Post

Replies

Boosts

Views

Activity

Reply to App Store Updates Tab Frozen
Running El Capitan Beta 1. Went to App Store to update to Beta 2. Shows updates available. Go to Updates Tab, then within a few seconds, it starts spinning circle checking for updates. The Beta 2 had shown since I went to the update tab. From that point it was spinning and effectively frozen. I did see in Activity Monitor softwareupdated taking up all the CPU so killed it. While it may help to log out and log back into the App Store, you may also have trouble even doing this if the App Store is not responsive. What helped a bit was to boot into recovery mode (Command +R) on reboot and Run Disk First Aid from Disk Utility.Anyway, here's what didn't work:Selecting the Update button next to El Capitan Beta 2.Here's what worked:Selecting the Update All button from the top of the Update screen above the list of updates. But, after I selected Update All, nothing happened as far as I could see. When I went to Force Quit the App Store because it appeared unresponsive, it asked if I wanted to continue in prog
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to no keyboard during yosemite install
Firstly, to answer your last question >> I can choose all recovery instances that exist which includes the Recovery HD on the maiin drive (10.11), the Recovery HD on the secondary drive (10.10.3), and still the Yosemite Installer USB. So far I've booted into each of these options individually to use the diskutility and verified/repaired the filesystem & permissions on the secondary drive (10.10.3).. but was failed to repair the main drive (10.11) ---which is already known to me, but i don't believe I gave you any detail on why it was garbage.After repairing the secondary drive, I've gone ahead and rebooted the Yosemite Installer USB and begun installing on the secondary drive. Figured might as well while I wait to conspire a game-plan on here. On the optimistic side.. the installation appears to be performing at a much more reasonable rate than the last time! ..(tho, not that it's quick by any stretch of the imagination)moving onward, I as well am sure there's some way to solve this issue..
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift 2 dictionary extension for a property list, how to?
I'm in the midst of rewriting some Objective-C code in Swift, and I have a bit of code that extended NSDictionary through a category, for the purpose of easing access to a structured property list read from a file. I'm stuck on how to declare and implement the equivalent Swift Dictionary extension. Being from a property list, assume the dictionary generally conforms to Dictionary<String, AnyObject>, and the leaf elements are String, Number (integerValue), Boolean (boolValue), or Array (Array<AnyObject>, array elements are String, Number or Boolean). Here are some example functions in the Objective-C category:@implementation NSDictionary (MyBookCategory) - (bool) hasIntroduction { NSString *value = [self objectForKey:kHasIntroductionKey]; return (value != nil && [value boolValue] == YES); } - (NSString*) getIntroductionLabel { return [self objectForKey:kIntroductionLabelKey]; } - (bool) hasIntroductionItems { return [self objectForKey:kIntroductionItemsKey] != nil; } - (NS
2
0
4.1k
Jun ’15
potloc not working with beta 2
Downloaded potloc sample code and in xcode 7 beta2 receiving an error:'Obj-c method ... provided by method ...conflicts with optional requirement method ... in protocol 'CLLocationManagerDelegate'' for this statement:func locationManager(manager: CLLocationManager, didUpdateLocations locations: [AnyObject])Changed 'AnyObject' to 'CLLocation' to match latest Swift documentation. This allowed code to build/run. When I select 'start updating location' from the iPhone app, get this error:Error when updating application context Error Domain=WCErrorDomain Code=7005 The operation couldn’t be completed. (WCErrorDomain error 7005.).Statement is in the PotlocViewController.Swift file. Have not updated any settings. Just looking to have this work in the Simulators.Side note: When I start typing out this function, it does not appear in the autocomplete list.
1
0
423
Jun ’15
Reply to Ios9 unable to pair with Watch OS 2
Well mine is bricked. Both watch and phone hung after wrist selection and both required a forced restart. Watch will not pair with any phone I've tried. When trying to pair manually the watch will not broadcast its name. I've performed both reset settings and reset content and settings on my phone with no luck. Took the watch to an Apple store where the Genius said they've seen pairing issues such as this. They're replacing mine free of charge.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Is this a generics bug or feature?
Sorry about the delay....So, maybe i cannot help you more than Closure, but just to complement my answer:Like said: When Swift will compile the code, will only decide with funcion will call, nothin more! Of course, Swift can do Generic specialization, and does, but only after decide with method should call and only for performance reasons.Just think in this way:func foo(a: Int) {...} func foo(a: Double) {...} foo(1) // Will call Int version. foo(2.0) // Will call Double version.Pretty obvious, right?When compile the line foo(1) the compiler will decide with foo function will call, but not more! Just will pick the correct address of the correct function.To be more clear, foo(a: Int) and foo(a: Double) are completely different functions!When compile will look of some function foo with has a double argument will do in the same way it is looking a zzz function with some other argument.func foo(a: Int) {...} func foo(a: Double) {...} func foo(a: T) {...} foo(1) // Will call Int version. foo(2.0) // Will c
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Swift code completion not working with Cocoapods
I have an demo app that uses various internal development pods written in swift. All of the swift code in the development pods has trouble code completing. For example, when holding command and clicking on import UIKit, Xcode complains of a Symbol Not Found when tapping on UIKit. There's no compiler errors, everything builds and runs just fine.If I have swift code outside of the pod in the demo project itself, that code completes just fine, but when I put it in a pod and run pod install, it either stops code completing immediately, or works for a few hours / pod update commands, and then randomly stops working. I have other development pods in my project, and those written in Objective-C have no trouble code completing ever.I have tried multiple different solutions, namely the solutions listed here: http://stackoverflow.com/q/25883905. None of these worked for me.I tried various combinations of these solutions from the post above multiple times:deleting Xcode's derived dataselecting a different simul
2
0
1.5k
Jun ’15
Reply to Is it true, no OpenAL in iOS9?
We are talking about pre-release stuff here and things can change of course but from everything I'm currently aware of OpenAL is not going anywhere just yet and I'm not sure why it's listed as Removed.We have officially stated that AVAudioEngine is our recommended API for spatial audio (see AVAudioEngine In Practice http://developer.apple.com/videos/wwdc/2014/#502) but it does take more than a year for the older API to disappear. You would generally see it marked as Deprecated first in an SDK giving a big hint of the future (and plenty of development time) before any type of removal happens.Glad to hear you've already been doing some porting and I think your Christmas is saved.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to watchos 2 beta 2
I had the same problem with watchOS 2 beta 2: The watch startup did not finish.This means: watchOS 2 beta 2 was installed and then the watch reboots and shows the booting logo (the white Apple logo) and begins drawing a circle with little ticks around the logo. But it never completes the circle and stops progressing at some point. Forcing a reboot or waiting all day does not help.Now i found a way to escape and get watchOS 2 working:Force reboot: Hold both buttons until the Apple logo appears.Factory reset: When prompted for the passcode, force touch the number pad on screen and select factory reset. This is also possible in some other situations without the passcode screen: Just repeat trying to force touch (in any other situation) again and again and at some point it will show the reset option. Then do the factory reset.A new pairing process is performed with your iPhone. It failed for me the first two times and succeeded on 3rd try (pressing and holding the side button to turn the watch off and th
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Add calendar to iOS app
Iam attempting to create an app of events where I add an event to my online database and it is added to the calendar of my application. So example, If i add Party on the beach in my db,set date to 25th June 2015. A user opening the application and navigating to Events..selecting June will see this on a calendar.I am having a little trouble implementing something of the sort as all searches is leading me of how to sync my app with the native calendar app of the device which is not exactly what I want.Basically I just want a calendar in my app which reads events from online.. Any assistance to point me in the right direction would be appreciated.ClarificationI have a hosted database and this isn't my issue, what I am looking to find is some calendar that can read events from said database.Say I have a class room of students, what I am trying to accomplish is: After I update my database with an event(exam at 2:30) logging into the app and selecting the event tab shows the info i added on the set date.I have foun
1
0
1.5k
Jun ’15
Reply to Swift 2 dictionary extension for a property list, how to?
This is helpful, and your suggestion is encouraging me to lean towards a non-pure solution, so thank you for that 🙂. Unfortunately, the code above crashes in my use case (feeding it a dictionary read from a property list file), and it still has some of the problems I'm seeking to avoid, namely, the as! Key cast, and frequent use of NS objects, however I think I'm ready to give up the ghost on the latter.I should have been clearer about the code that works, but feels wrong, it was this:extension Dictionary { func hasIntroduction() -> Bool { if let value = self[kHasIntroductionKey as! Key] as? NSString { return value.boolValue } return false } }The following alternative extension, on NSDictionary, eliminates the as! Key conversion, and is what I am currently leaning towards:extension NSDictionary { func hasIntroduction() -> Bool { if let value = self[kHasIntroductionKey] as? NSString { return value.boolValue } return false } }I'm still holding out hope that there is a more general Swift solution
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15