Search results for

SwiftUI List performance

50,606 results found

Post

Replies

Boosts

Views

Activity

API documentation using appledoc in XCode 6.1
Hi Everyone,We have generated API Doucment using appledoc in Xcode 6.1. In this the methods declared in the sample.h file are listed under Other Method in the generated documentation. Please refer the image in the following link. https://www.dropbox.com/s/tjqfz3lm0n0irzl/Other%20Methods.PNG?dl=0 .Also, some of the words has hyperlinks(delegate and series in the bleow link) which navigates to other links, please refer the image in the following link, https://www.dropbox.com/s/493i6wb8o1u9dsm/Links.PNG?dl=0Could you please let me know the above cases were default behaviour or any possible ways to avoid these ?Thanks,Balaji
1
0
137
Jun ’15
Clustering Annotations on MapKit
Hi, I am new in iOS development. I am currently developing an app that shows a large amount of gas stations on the map. Whenever I try running it, performance is really poor, given the fact that there are about 9000 annotations being displayed at a time.I was wondering if anyone could help me out, explaining a way to cluster annotations that are nearby, so as to increase performance, and also style (the map is overloaded with pins).
3
0
4.8k
Jun ’15
Reply to Apple Push Certificates Portal MDM
I believe you are correct that it is working this way, but I don't think it should be. My expectation was that whoever was currently the Agent for our Enterpirse Developer Program would have access to the current push certificates list in the portal. I'm glad I discovered this is not the case before I removed the previous Agent's account. Since allowing a certificate to expire requires re-enrolling after replacing it with a new certificate, this is just a remarkable way to hurt yourself. Especially since there aren't any warnings about this on the portal or member center.
Jun ’15
Not all font styles for custom font appearing in menu in Interface Builder
I have a few font files I have included in my Xcode project and I'm having some trouble being able to select them in Interface Builder. I verified the font family and the three styles are available by iterating over the available fonts and printing them out with log statements.When I try to set the font for a UILabel, I see the family appear in the family list, but I only see one style available.Has anyone seen this problem before. Any idea how to fix it?
0
0
129
Jun ’15
Core Data - Best practice to create standlone or temporary objects?
What is best practice to create standlone or temporary objects. I am working on an app and I have user entity. I am performing some background operations on data. These background operations can save the managed object context also. If in between any other object of same context is changed than it is also getting saved which should not happen. If user press cancel than I want to discard the changes.I have already face this problem many times and asked others also. But not find any consisten answer. What is best practice to create temporary managed object without any context.
1
0
361
Jun ’15
Reply to What is device reset date?
I believe it is the date on which you can delete devices from the list of iOS device UDIDs associated with your account. It should be the date of your original iOS developer program expiry. Now that they have added a variable number of days to people's memberships, that date doesn't necessarily coincide with the membership renewal date any more. So they list it separately.You can delete devices before that date, but if you are at the 100 device limit then you still wouldn't be able to add new ones until after it.
Jun ’15
Reply to Setting Up In App Purchase
Rich, you wrote:1) You might have seen the alert when a purchase attempt occurs - 'You've already purchased this. Tap OK to download it again for free'...... This alert will occur whenever a user with a new device requests to 'buy' an IAP rather than to 'restore' it. At this point in the dialog (i.e. the user is already at the App Store with a purchaseRequest) the user will have added the transaction observer whether they do it your way or mine so any unfinished transaction will already have come through to updatedTransactions.2) Something else to consider. If there is an incomplete transaction and the restoreCompletedTransactions method is called to restore previous transactions, the incomplete transaction will not appear in the array of prodict identifiers to restore. Using my approach of adding the transaction observer only when necessary the code will addTransactionObserver when it executes a restoreCompletedTransaction. 3) As to the recommendation to calling addTransactionObserver in the didFinishLaunchi
Topic: App & System Services SubTopic: StoreKit Tags:
Jun ’15
Reply to swift: how to notify native data change?
Honestly, if you want a notification-style model to work properly, the objects observing probably should be classes.The observers need to have a stable identity, so that there is a valid target for the callback.The observers need to allow the notification center object to keep a reference to them rather than a copy of them, so that the observer is the original object.The observers need a way to deregister themselves when they go out of scope, so that the notification center doesn't try to access a deallocated observer.There are things that structs are great at... the qualities listed above are not any of those things.Using classes for types that need to listen for notifications, and using the existing NSNotification system is just simpler in most cases.You can use a unique-per-instance generated String as the sender for the notifications, if the property you are observing belongs to something that ought to be a struct, in order to match notifications originating from a particular struct instance.But
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Tethering From Mac to iPhone through USB
Hi! This is just something I thought might be pretty cool to add to the MacOS and iOS devices, the ability to utilize the Macintosh's WiFi/Ethernet for internet communication while connected through USB to the Mac Computer.Main reason I thought of this was due to WiFi and Bluetooth not working at all on my iPhone yet it can still perform Tethering through USB to a computer connected through USB. So in reverse, maybe have it so that I can utilize my iPhone with internet capabilities through my Macintosh Tethering its connection to the iPhone through USB. (basically a reverse Tethering).P.S. I'm new to the forums so I'm still getting a used to it, excuse me if I post in the wrong category or ask something that's already been asked before.
0
0
762
Jun ’15
Reply to Is this a generics bug or feature?
This isn't about runtime type information. If Swift properly performed generic specialization it could make the correct call with static type information. This is essential to a sane generics implementation IMO. It should be guaranteed by the semantics of the language so we can rely on it. I have to wonder if this code would behave differently when compiled under optimization if the optimizer chose to specialize the calls to baz on lines 22 and 23. If it does we have optimizer-dependent behavior which seems really bad. If it doesn't we have generic specialization that is really crippled.While I am really excited about Swift, love to see Apple doing it, and know the team is working really hard to improve it rapidly, I have to say this kind of issue seems to pop up in many corners of the language and really drive me nuts!
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Updating toSeparateFromAgents at runtime?
For testing I am creating a flock of Critters (a subclass of GKAgents) in a loop, each critter has 3 goals:Seek (Weighted at 0.05)Wander (weighted at 1.0, but disabled as I can't get it to work)Seperate (Weighted at 10.0)As I create each Critter I add them to my flock, what I am puzzled by is the way that goals (like seperate) that require an array of agents work at runtime. When I create each Critter (and its seperate goal) and add them to my flock this is what I will getCritter_001 - flock[]Critter_002 - flock[Critter_001]Critter_003 - flock[Critter_001, Critter_002]Critter_004 - flock[Critter_001, Critter_002, Critter_003]Finally arriving at - flock[Critter_001, Critter_002, Critter_003, Critter_004]As you can appreciate if this list is taken as-is at creation than Critter_001 has no one to seperate from and Critter_002 only seperates from Critter_001. I would hope that on each cycle of the update loop the goals look at the current state of the flock. If this is not the case then it could be very
2
0
486
Jun ’15
Reply to Is this a generics bug or feature?
Yes, T with no constraint will behave exactly like Any!Swift can do generic specialization (like shown in wwdc) but only for performance goal when optimize the code. But the final behavior is the same.It's not like C++, which generates a specialized version of every single call.Just to complement: The main problem is the two levels of generic abstraction.When the compile the baz function, there's no constraint to make the compiler create a specialized version of foo function, so compile will decide call the Any version.bar and foo don't have this problem.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Core Animation 2D water effect like shown.
Hello All,I was wanting to create a 2d water/fluid like effect for an app that contains a graph. Something very simalar to this link/image below. I was thinking since my end points could stay at the bottom of the iPhone and iPad screen I could animate the bezier path of points for the top line and set it to fill the complete oddly shaped path. Is this a fools errand can UIDynamics get me easier results? I am just looking for some advice on starting points. Eventually the subpaths in the top line will have to settle to the accurate graph readings but I wanted to add this thinking/loading animation effect before the graph gets populated. Is Core Animation the best route? I was thinking of testing a three sided square with the top part of the sqaure as the wavy jiggly line as a starting point. Does anyone see why I should avoid this route? (Full disclosure/credit: This is from a designer named Joe Ski via Dribbble not me. I only show this as a visual reference to what I am trying to get close to in code.) https:
4
0
1.4k
Jun ’15