Search results for

SwiftUI List performance

50,608 results found

Post

Replies

Boosts

Views

Activity

OS X Photos extension: object cannot be nil
I'm trying to get started creating a Photos extension for OS X. After changing UIViewController to NSViewController and UIImage to NSImage in the template, opening Photos, hitting Edit, I select my extension in the list of plugins, but then the extension crashes before viewDidLoad is called. This is logged:2015-06-28 12:30:23.927 extension[1911:678982] An uncaught exception was raised2015-06-28 12:30:23.927 extension[1911:678982] *** setObjectForKey: object cannot be nil (key: <__NSConcreteUUID 0x7fb993d1fe30> 04015FC0-C1BB-4DF8-A48F-7C89B4642AC2)What can I do to resolve this?
4
0
705
Jun ’15
Adding distortion effect to to video
My app is displaying video on iOS, currently using AVSampleBufferDisplayLayer. Before video is shown on screen I need to add barrel distortion effect to it. How to do it efficiently? There is no easy way to manipulate CALayer contents without significant performance penalty. Requirement for video is 1920x1080 at 60 frames per second.First alternative was to use VTDecompressionSession instead of AVSampleBufferDisplayLayer and use OpenGL shaders for distortion. But it looks like reading frames back from GPU is quite slow, it takes 20-25 milliseconds per frame for decoding and reading the YUV data.Second alternative was using software video decoding and then OpenGL shaders. This is actually faster than using VTDecompressionSession but will kill the battery very quickly.Third alternative would to apply CIFilter to CALayer, but according to documentation this is not supported on iOS.Fourth approach would be to render to offscreen using UIView's renderInContext-method. Haven't tried this yet but it is prob
6
0
1.4k
Jun ’15
Reply to Any iPad 2 iOS 9 Beta 2 users?
I've not tired to install ios 9 on my ipad 2. I'm hoping that ios9 will be faster then ios 8 or 7, which caused the ipad 2 to be very sugglish. Curious to hear impressions of performance & responsiveness. 8.3 is pretty good, but it's still laggy in a lot of areas.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift Extensions with generic type paramters
Am I missing something here? I cannot see a reason that this would not compile...protocol StringValidationRule { func validate(string: String) throws -> Bool var errorType: StringValidationError { get } } extension Array where T: StringValidationRule { func validateEach(string: String, completion: (valid: Bool, error: StringValidationError?) -> ()) { for rule in self { do { try rule.validate(string) completion(valid: true, error: nil) } catch let error as StringValidationError { completion(valid: false, error: error) } catch { fatalError(Unexpected error type) } } } } var validationRules = ... validationRules.validateEach() { (valid, error) -> () in }Line 23 throws the following error:error: cannot invoke 'validateEach' with an argument list of type '(String, (_, _) -> ())'validationRules.validateEach() { (valid, error) -> () in
9
0
9.9k
Jun ’15
Reply to Can't log into iCloud: Verification Failed - Your username or password is incorrect.
Yes, already tried that as well. My Mac is listed there because for some works I still boot into Yosemite. I removed the device again and it keeps out there as long as I use El Capitan. My iPhone and iPad are still listed there. So:Username and password works under: iPhone, iPad, Yosemite, iCloud.com. It does not work for El Capitan. It's clearly a El Capitan bug.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Any iPad 2 iOS 9 Beta 2 users?
My experience is that beta software is a poor baseline for what the performance of the finished code (is it ever REALLY finished?) will be as optimization is usually one of the final stages of getting to Gold Master. This stage of the beta is really more about fixing bugs and testing functionality more than it is about benchmarking against previous releases. Cheers!Dave
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
iOS 9 contacts
hi, I've just scratch installed iOS 9 on my 6plus, then I've sync'd with my iCloud account. Everything seems right but the contacts: I'm having maybe the half of the full contacts list I had before (it was 4.200 contacts).any idea why is this happening? thanks
1
0
186
Jun ’15
Apple's canOpenURL 'solution'
Am I the only one that is a bit perplexed by the solution Apple has put in place for canOpenURL, how does adding the url schemes to a whitelist in your own application make sense? What is stopping Twitter from just adding the list of known custom URLs into their plist and continuing with their practice of using canOpenURL? It would probably make more sense for the app that is being queried to specify which apps should be allowed to query it, from a security standpoint, but I wouldn't advocate that either. I think Apple needs to come up with a better solution for the restriction on canOpenURL. I think at the very least an application that has the same Team ID as an application it wants to open should be allowed to do so without having to specify it in the whitelist.
4
0
1.5k
Jun ’15
Reply to How to test web markup (iOS 9 search APIs)
You should also check the iOS 9 section of What's New in iOS as that has some additional information. In particular it says:When users tap a search result for an item that you added to the index, your app should open and restore the context associated with that item. To accomplish this, your app delegate implements application:continueUserActivity:restorationHandler:, checking the type of the incoming activity to see if the app is opening because the user tapped an indexed item in a search result. Listing 5 shows a skeletal implementation of application:continueUserActivity:restorationHandler:.As for the Applebot and web markup tool, that's not quite ready. We'll post something here in the forums when there's more information available.
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Resigning third party IOS app with Enterprise certificate and provision profile
here are the steps that I performed for resigning app:1) removing _CodeSignature from package2) replacing embedded.mobileprovision with Enterprise distribution provision profile.3) codesign with entitlements.plist fileAfter resigning app when I try to install on any device then it shows app grayed out.Is there anything I am missing?
0
0
1.2k
Jun ’15
Reply to watchOS2 reset to the factory defaults
If i do thisWhile your watch is in the charger, try pressing the digital crown button and the power (also friends) button together until you get the Apple logo.After 2 minutes it can boot and i see a list of languages from which i can choose.The next step is to pair: the problem is here, i can't pair the Watch with the iPhone6 (with iOS9 b2).It seems like the watch doesn't broadcast its BT device name because neither with the manually pairing it works.Thanks.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Updating toSeparateFromAgents at runtime?
I solved the problem above by first creating all the critters without any behavors and adding them to a flock. Once the entire flock had been created I looped through each flock member and assigned behavors. This way all the Critters had a list of their fellow flock buddies right from the start.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’15