Search results for

SwiftUI List performance

50,613 results found

Post

Replies

Boosts

Views

Activity

Reply to couldn't communicate with a helper application
It's peculiar that a reinstall didn't fix that.First try correctly setting the catalog using the following command in Terminal (the whole thing, including the text that appears as a link):sudo softwareupdate --set-catalog https://swscan.apple.com/content/catalogs/others/index-10.11seed-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gzAlso, have you tried booting into Safe Mode, or booting normally but creating a new temporary admin account and updating from there?Follow these steps to start up into safe mode.Start or restart your Mac.Immediately after you hear the startup sound, press and hold the Shift key.Release the Shift key when you see the Apple logo appear on the screen.After the Apple logo appears, it might take longer than usual to reach the login screen or your desktop. This is because your Mac performs a directory check of your startup disk as part of safe mode.If you're not sure if your Mac is started in safe mode, you can use System Information to check this. T
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to SKTransactionObserver error
in the top line it say viewcontroller4 does not confirm to protocol: SKPaymentTransactionObserverCan you help:This is my code:/ / / / / / / import UIKit import iAd import StoreKit class ViewController4: UIViewController, ADBannerViewDelegate, SKPaymentTransactionObserver, SKProductsRequestDelegate { class Test: NSObject, SKPaymentTransactionObserver { func paymentQueue(queue: SKPaymentQueue!, updatedTransactions transactions: [AnyObject]!) {} func attemptAddingSelfAsObserver() { SKPaymentQueue.defaultQueue().addTransactionObserver(self) } } @IBOutlet var s1: UIButton! @IBOutlet var s2: UIButton! @IBOutlet var s3: UIButton! @IBOutlet var more: UIButton! @IBOutlet var info: UIButton! @IBOutlet var home: UIButton! @IBOutlet var banner: ADBannerView! @IBOutlet var restore: UIButton! @IBOutlet var skipsl: UILabel! var moreon = 1 func updatelbl() { if infinite == off { skipsl.text = Skips = (skips) } else if infinite == on { skipsl.text = Skips = Infinite } } func morefunc() { if moreon == 1 { s1.setTitle(22 skips
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Can UIPresentationController fully replace SWRevealViewController?
Based on all the items listed above, I believe you are going to have to write some custom code. 🙂For others reading, the original post is referring to WWDC 2014 video titled A Look Inside Presentation Controllers in https://developer.apple.com/videos/wwdc/2014/Maybe you could suggest that Ray Wenderlich and the gang update the following tutorial to use UIPresentationController: http://www.raywenderlich.com/78568/create-slide-out-navigation-panel-swift Ray's Twitter is @rwenderlich and his team's twitter list is https://twitter.com/rwenderlich/lists/raywenderlich-com-teamAn additional option is to download the sample code from WWDC 2014 and play around with it a bit to get a feel for what would be involved: https://developer.apple.com/library/ios/samplecode/LookInside/Introduction/Intro.html
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’15
Reply to What happens if the free CloudKit limit is reached?
I think I now found out what the limits for data transfer are by watching a session recording from the WWDC 2015 (https://developer.apple.com/videos/wwdc/2015/?id=704). There they said that the 2 GB is only for assets and the 40 requets per seconds which are also listed on the CloudKit Website are only for databases. So Apple does not count the bytes you are down - or uploading to your public databases, they count only the requests per second to your public databases.
Jul ’15
Bridging headers for a playground (7b2)?
How do I expose a C framework that isn’t in the standard library to a playground in Xcode 7.0b2?Xcode 7.0 beta 2 (7A121l), current scheme is for a 10.11 target, playground is for OS X.I want my OS X Swift file-utility struct to use a SHA1 digest to test two files for equality. The service is available through CommonCrypto, an all-C library.What works in target-member source:Adding#import <CommonCrypto/CommonCrypto.h>to the projectname_Bridging-Header.h file makes the CommonCrypto API visible to Swift source in the target. No import statement is needed in Swift. Common Crypto seems not to be a framework nor is it modularized:Objective-C headers do not accept@import CommonCrypto;even after doing a build with the #import (I understand that creates a per-project module). Nor does Swift acceptimport CommonCrypto // No such module 'CommonCrypto'Trying a find (in /System/Library or the equivalent 10.11 SDK inside Xcode) turns up nothing:find /System/Library/Frameworks/ -type f -iname 'CommonCrypto.*'The librar
0
0
2.4k
Jul ’15
application description
Can you include in the mobile application description on the store additional features that will be coming soon in the next versions? Trying to communicate to users which features will be added to the application in later versions, but not sure if I can list them in the description section for the application in the store. Does anyone know??
2
0
188
Jul ’15
Xcode code sense thinks Objective-C file is regular plain-text file
I posted about my question before in a different forum, but it bears repeating here. Xcode's code sense will sometimes not list what I want to type in. I think when it does, it's because such wording is already written in the file. I saw this behavior before while editing a different plaintext file, so I think Xcode is treating my Objective-C file as just another plaintext file.I'll link to a screenshot later, but it's in the Apple Support Communities (look for a question with the same title as this thread's title.)
1
0
358
Jul ’15
Reply to Can we get a "try?" as a more lenient "try!"?
There are a lot of cases where you don't carewhat the error is, and what's important is whether the file is reachable or whether you can perform some operation or not.Here's a couple more, in addition to the ones already mentioned:- Setting the color of a view object representing a file in the project, dependent on whether the file is reachable or not. For something like Xcode's left-hand sidebar, does it matter if the file is unreachable because it's missing, or because you don't have read permission to its parent folder? Not really, you just want to color it red to show that you can't open it.- Closing and/or releasing some kind of resource, whether it's a file descriptor, a network socket, or whatever. Like the temp files, it'll be closed when your app exits anyway, and its failure to close won't affect your processing of whatever data you just read from it without errors.- Implementing a delegate method, or overriding a method, or doing something with a method whose signature looks something like
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Archiving and unarchiving structs, enums and other values to NSData and back - possible solution
Maybe I am misunderstanding you but I do not get how you come to the conclusion that generics are compiletime only.I know in Java for example there is type erasure so you can not do something likeif(myObj instanceof List<String>) { /**/ }because the type parameter <String> is absolutely not available at runtime but this is NOT the case in swift.Take a look at the following:struct MyGeneric<T> { let val : T } let a = MyGeneric(val: hello) let b = MyGeneric(val: 42) func printType(arg: Any) { print(arg.dynamicType) } // prints the full parameterized type correctly: printType(a) /* MyGeneric<Swift.String> */ printType(b) /* MyGeneric<Swift.Int> */ func isStringGeneric(gen : Any) -> Bool { return gen.dynamicType == MyGeneric<String>.self } // compared the the type correctly print(isStringGeneric(a)) /* true */ print(isStringGeneric(b)) /* false */ func dynamicConstructor(gen : Any) -> Any? { if let t = gen.dynamicType as? MyGeneric<String>.Type { return t.i
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Map Pin title problem
I have a frustrating issue with Map Pin annotations.If i create a single view application with the following code it works fine. No issues.I have encountered a problem when i attempt to use it in as a scene in my application.The basis of the application is adding multiple map annotations from a property list.I create an NSMutableArray from the property list, these are then added through an NSObject and the map is updated with pins and titles.The Issue.The mappins are displayed correctly in their correct positions If i do not add a title.When I add the title the app crashes.The view .h#import <UIKit/UIKit.h>#import <MapKit/MapKit.h>@interface Citys : UIViewController@property (nonatomic,strong) IBOutlet MKMapView *mapview;@endThe View .m#import Citys.h#import MapViewAnnotation.h@interface Citys ()@end@implementation Citys@synthesize mapview;- (NSMutableArray *)createAnnotations{ NSMutableArray *annotations = [[NSMutableArray alloc] init]; / NSString *path = [[NSBundle mainBundle] pathForR
4
0
534
Jul ’15
Parental Control App
Hi every body,I'm going to write an app for parental control purpose, I want to know if it's possible to get list of running apps and calculate their running time and in some situation prevent them from running by child? for example time limitation on apps?Is there anyway? is this possible by taking permission from apple? if yes, how to get such a permission?Thanks a lot.
1
0
764
Jul ’15
Reply to Entities and Components
You mention advancing. What is the advancement?I believe that the entity/component model is solving the same problem that default protocol implementations are, and each is currently helpful only because neither addresses the root problem: that one must be able to see itself as multiple things at the same time. The play that you perform, as a guitarist, is not the same play that you perform, as a person pretending to be a cat, for example. Segmenting oneself into components that comprise the whole, and only allowing one implementation of a method, do no allow addressing oneself as a entity who does the same thing in different ways.
Topic: Graphics & Games SubTopic: General Tags:
Jul ’15
Controlling AVPlayer buffering
My app shows a kind of a movie list(http streaming), each movie item should be autoplayed when it becomes visible.Each movie is implemented using AVPlayer, Each non visible AVPlayer item is pre-rolled in order to reduce the streaming delay once it become visible.I've noticed that AVPlayer status changed to AVPlayerStatusReadyToPlay after the preroll(about 3-4 sec) finished.however I've also noticed that the AVPlayer continues buffering after preroll finished.I have tried to stop the buffering as follows but they all fail:AVPlayer.pauseAVPlayer:prerollAtRate:0 (set the rate to zero)AVPlayer:cancelPendingPrerollsI could stop the buffering only with AVQueuePlayer as follows:<instead of init AVPlayer, I have init AVQueuePlayer>[queuePlayer removeAllItems];however this will dispose all the preroll data.Is it posible to control the AVPlayer buffering?Is it posible to pause the buffering after preroll finished?thanksamir.
1
0
6.5k
Jul ’15
Web Inspector: Timelines
Hello,I am attempting to capture the performance of an HTML script. I open it in Safari. I open web inspector. I go to timelines, but nothing is being recorded. I have tried running other sites and still timelines records nothing (regardless of pressing the record button). I mean, I see the button and text say it's recording, yet nothing is actually being documented. Obviously I am missing some simple undocumented step.Does anyone know what error I might be encountering...Cheers,
0
0
254
Jul ’15