Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

CFNotificationCenterAddObserver
Has anyone figured out how to call CFNotificationCenterAddObserver() from Swift yet?Session 224 had the following example:CFNotificationCenterAddObserver(nc, nil, { _ in self.reloadModel() }, com.example.app-model-updated, nil, .DeliverImmediately)However, I can't get this to compile. Xcode 6.4b4 gives the following error:Cannot invoke 'CFNotificationCenterAddObserver' with an argument list of type '(CFNotificationCenter!, nil, (_) -> _, String, nil, CFNotificationSuspensionBehavior)'
1
0
665
Jun ’15
Segueway not being found
I am using Swift 2.0. I have a Swift framework that also has a storyboard. My Swift app that is using this framework can display the view controller within the framework, but when a segueway within the framework is performed, the app crashes saying the segue MySegue cannot be found. This code has worked under Obj C for years and Swift 1.x.Any thoughts ?Thank you,Gene
1
0
329
Jun ’15
Getting really slow performance using imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate
I have a simple table view with images created using the following:imageView.image = [[UIImage imageNamed:iconName] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];This was working fine until I refactored the code to use a custom table cell and autolayout (was using generic UITableViewCells with tags).Now it takes a long time to render and shows out of memory errors when simply scrolling half a dozen rows! Any idea what's wrong or how to fix?
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
1k
Jun ’15
Reply to App thinning and syncing with iTunes
Same here.I already asked in the WWDC Lab, what happens with on-demand ressources, when a new version is submitted, only on demand ressources have been changed? Will I see an update, that does not download or install anything except the info.plist?But xloser to your topic:My Mac s my digital hub and I never download App Updates via WiFi, only if I do not have any other option and the update is important enough (like during the WWDC). I have 3 devices linked there, my iPhone, my newer iPad (V3) and an old original one (ignoring for now).When I download the thinned updates in iTunes, what will happen?Do I get 2 different build downloaded, one for iPhone one for iPad?Do I get a app download, that is thinned to only the 2 devices - in that case not that much at all?What happens, when I download a thinned App on my iPhone, sync it via iTunes and want to install it on my iPad? The thinned iPhone version won't work on the iPad. Do I need a download - will it be another file?Last not least, imagine I get a third devi
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
CILanczosScaleTransform performance
I am trying to use a CIFilter : CILanczosScaleTransform. Basically, I perform two basic steps :Feeding an image/video frame to the CIFilter and getting the output : CIFilter *f = [CIFilter filterWithName:@CILanczosScaleTransform];// Downscale the image [f setValue:[NSNumber numberWithFloat:scaleFactor] forKey:@inputScale]; [f setValue:[NSNumber numberWithFloat:1.0] forKey:@inputAspectRatio]; [f setValue:inputImage forKey:@inputImage]; CIImage *outImage = [f valueForKey:@outputImage];2. In the second step I render the image on to a CVPixel buffer CVPixelBufferLockBaseAddress( outputPixelBuffer, 0 ); [ciContext render: outImage toCVPixelBuffer:outputPixelBuffer]; CVPixelBufferUnlockBaseAddress(outputPixelBuffer, 0);Here the cicontext is created from a OpenGL context. EAGLContext *eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];NSDictionary *options = @{ kCIContextWorkingColorSpace : [NSNull null] }; CIContext *ciContext = [CIContext contextWithEAGLContext:eaglContext options:
0
0
519
Jun ’15
Reply to USB Sound Issues
The option to use Display Audio on an older Cinema Display disappeared. The display is now listed as an unknown apple USB device ! But that cannot be selected for long, before it switches to another output. In the meantime, lots of distortion, clicks, pops. reported as well.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Contact Containers
I am intrigued by the new addContact(_:toContainerWithIdentifier:) function in the CNSaveRequest Class Reference for iOS 9. Where can I find more information on contact containers other than the default? I want to create and share contacts across a group of apps, but not have those contacts mix into and appear in the default contacts list. Can I create my own containers and identifiers to do this? If not, what is the purpose and use of these other contact containers?
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
1.8k
Jun ’15
Performance of games with limited animation
We love the simplicity of he SpriteKit framework, but have been wondering if there's a way to get better battery performance when our game doesn't need to animate at 60 fps. For example, in simple casual games or puzzle games (consider Solitaire), where we don't need things changing every frame, it feels like a waste of battery to have to setup and submit the entire render frame when nothing has changed. Ideally, the frameworl would know that nothing has changed and automatically skip render, but we can imagine that this is tricky. Please note that we are not looking for a way to set our frame rate to 30 fps of something like that. We are explicitly looking for a way to only have render occur when the screen needs to change, as opposed to doing it every frame just because.One solution might be to allow us to override render and allow us to cancel it (meaning our override doesn't call super::render) when we know that nothing has changed.
0
0
176
Jun ’15
Core Data in swift 2
Struggling with the syntax a bit, is there an example anywhere?I have a snippet of code here:let request = NSFetchRequest(entityName: StockCode) request.predicate = NSPredicate(format: ean == %@, ean) let results = managedContext.executeFetchRequest(request) as! [StockCode]Basically finding a product code from a bit list of them.The last line is giving Call can throw, but it is not marked with try and the error is not handledIf I was better with try/catch historically, then I may be able to solve it, but I've tried a few things and cant solve it. I'd really appreciate some help if there's enough info here to be able to. Thanks.
2
0
2.1k
Jun ’15
Reply to WiFi EAP-TLS errors
Having this problem on all the latest apple betas. IOS 9 & 8.4 and OSX 10.10 and 10.11 betas. I found this in our clearpass server for onboarding, i wonder if the new updates are actually impementing this added trust requirement -The server certificate is used by ClearPass to secure web (HTTPS) and authentication (RADIUS) traffic. It can be configured in Policy Manager under Administration » Certificates » Server Certificate.The optimal configuration for Onboard is a server certificate issued by a trusted commercial certificate authority. A list of certificate authorities trusted by iOS devices can be found at http://support.apple.com/kb/HT5012Alternatively if you only wish to use a single Onboard Certificate Authority then you can use that Certificate Authority to sign the server certificate. Users will then have to install the certificate as part of the provisioning process. Refer to the Deployment Guide for more information.For testing purposes you can disable the requirement for HTTPS on the
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Bluetooth device specification?
Hi,is it confirmed the the watch is a BTLE 4.0 device..?i Have been testing various Plantronics Headphones such as the Backbeat Pro which is a Class 1 device so the range is amazing on the IPhone 6 which is also a Class 1 device so BT range is 300 ft,approx 100 m.the he watch definitely has BT issues at present,music play interrupted etc.hopefully the watch will soon be upgraded to BT version 4.1 or 4.2??any comments on this possibility going forward as this would even improve the performance of all the BTLE smart devices.the next device that will be tested for performance and range is the Voyager Focus which is also a Class 1 range headphone.
Topic: App & System Services SubTopic: General Tags:
Jun ’15