Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS 9 Beta battery life
Reposting this with more info:When the beta came out yesterday, I did an upgrade and not a restore. Today I litterally watched the battery percentage drop 1 percent every two minutes while I only had the home screen active (background apps disabled, location services disabled, etc). I kept checking the Settings -> Battery page and it show Home Screen at 15% of the usage, which was completely wrong.Today I did a complete restore and now things are better. The Settings -> Battery screen not only showed Photo App as the top user (I have over 8 gigs of phots and videos), but it also showed it as Background Activity. I didn't see that before I did the complete restore. Now, Mail, Messages and Calendar also show that. I'm sure the battery will still drain faster than with a production version, but at least it seems like the reporting is working correctly and it allowed me to understand what was sucking the life out of my battery.---------------------------------------------------------As an update, I have an
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
How can I clear the network requests and responses left in the device memory?
I'm using AFNetworking as my basic networking library. When I do a memory dump on a jailbroken phone (iPhone 4, iOS 7.1), I can easily see request urls and/or responses (such as json objects) in the dump files in plain text. I checked with the memory leak tool in Xcode and there is no memory leak based on that.My app has sensitive data in the urls or responses (Like user's name, email address, etc), which are listed in the OWASP mobile risks (M4: Unintended Data Leakage). We are required to be in compliance with these standards so I want to clean this information right after the connection finished. What I have done so far:1) Set the cache policy in the AFNetworking to NSURLRequestReloadIgnoringLocalCacheData2) Disabling the NSURLCache in the app:NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil]; [NSURLCache setSharedURLCache:sharedCache];3) I also tried:[[NSURLCache sharedURLCache] removeAllCachedResponses];or[[NSURLCache sharedURLCache] removeCached
3
0
2.2k
Jun ’15
UIControl and UITableViewCell interaction
I have a UITableViewCell that within its contentView, has a UIControl subview. When that view is pressed, I change the background color of the view. To my understanding, the UIControl knows when it is in a table view so that the pressing of the UIControl will wait for the scroll gesture recognizer of the UITableView to fail before initiating. My question is, how can I detect the failure of the swipe to delete scroll gesture of the table view cell? My button is getting a pressed state even though I am actually performing a swipe to delete (exposing the delete button like in the Mail App). Is there a way I can detect even a cancel of the touch so I can change the state back to unselected?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
487
Jun ’15
Reply to Start Up Disk
Can you try changing your Startup Disk in System Preferences? Make sure to give the pane a bit of time to read and recognize your volumes properly.I expect that this will work as a temporary fix. In terms of reaching a more permanent solution, I'm interested in seeing what diskutil list shows. Would you mind pasting or describing (if you know how to) the output that command yields? Note that it does include volume names and identifiers, which you can remove. I'm interested in your disk tree and what type of partition your 10.11 installation is.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
UI Testing Failure due to failed AX Action
When I run a UI Test in Xcode 7, the line XCUIApplication().launch() causes the test to fail under the Wait for app to idle step:UI Test Activity:Assertion Failure: UI Testing Failure - Failed to perform AX action for monitoring the animations of Target Application, error: Failed to perform AXAction 2043 after 30 retries: kAXErrorServerNotFound (see <rdar://problem/15530121>)Any idea what might be causing this failure?
3
0
15k
Jun ’15
Reply to Not enough available storage...
I was experiencing the exact same thing when I upgraded. It kept telling me that there was not enough space available on the Apple Watch for the 3rd party apps. I then performed a hard reset: Crown and contacts button pressed together. After it restarted I was able to install the remaining 3rd party apps. Hope that helps. Giulio
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to VPP or DEP simulators? Anyone find the download links?
Yeah I hear yaThe new features look great this year so cant wait for the docs BTW I already tried out the new 11 or so restrictions and they seem to be working well so far as does the ChangeManagementState = 'Managed' feature to change user installed apps to managed apps without the need to reinstall themIt works really well so far. Although they seem to have broken installing apps from the store in the InstallApplication command. Same thing with Managed Distribution apps.Uploaded Enterprise apps still install just fine, but with store apps it gets queued to install but then if you pull managed application list from the device after you see the app goes into ManagedButUninstalled status
Jun ’15
Weather app finding different location for default listing...
I live in Providence, R.I....yet the Apple Watch keeps pulling up weather for South Atlantic Ocean as the default location.It makes zero sense because I can't even search for that in the normal weather app. Also I wouldn't be located in the South Atlantic. When I restart the watch, it stays as Providence for maybe a half our or so then reversts back. This also seems to be killing the battery at about 10% an hour which is awful . I used to put the watch on the charger with 30-40%, and I've already had to charge it twice today.Anyone else have this weird glitch? Beta 2 can't come soon enough because I can't downgrade. As goes the life of a developer with beta software.
4
0
306
Jun ’15
Headless returns false for both GPUs
I'm iterating over the list of returned MTLDevices on a 2013 Mac Pro and both GPUs return false for their headless property. Is this accurate? I thought only 1 GPU had access to displays. The codelet devices: [MTLDevice] = MTLCopyAllDevices() //... for metalDevice: MTLDevice in devices { if metalDevice.headless == true { print(headless) headlessDevice = metalDevice } else { print(it has a head) } }I could just pick the one not returned by MTLCreateSystemDefaultDevice but is there a better way of picking the secondary GPU?
10
0
861
Jun ’15
Reply to prepareForSegue vs. pushViewController
When you mention the line below, do you mean the following.You should define a property or method on the destination VC that says here is the data to be displayed.When the delegate call back method is called, I am currently writing the line of code below.self.feedViewController!.feedsTableView.reloadData()Since this is reloading a tableView in another VC you mentioned this was not ideal. Instead, would the following logic make more sense.In the home VC I would instead write.self.feedViewController!.updateTableView()Then in the FeedVC where the tableView resides I would perform the following in the updateTableView() method.func updateTableView() { self.feedsTableView!.reloadData() }I hope this is clear. Take care,Jon
Jun ’15
Reply to Questions about NSCalendar
Also.... I found a very informative website that has a ton of examples specifically on how to work with dates within Swift.Here's a code snippet that he uses as an example, but does not compile for me, and I have no idea why I get the error: could not find member 'CalendarUnitDay'. Was this syntax changed with Swift 2.0?Every example I could find uses this syntax, but for me... no luck.// Playground - noun: a place where people can play import UIKit let userCalendar = NSCalendar.currentCalendar() // Let's create some dates to work with // ==================================== // It's 3:45:30 a.m., New Year's Day. Time to go home. let goHomeYoureDrunkTimeComponents = NSDateComponents() goHomeYoureDrunkTimeComponents.year = 2015 goHomeYoureDrunkTimeComponents.month = 1 goHomeYoureDrunkTimeComponents.day = 1 goHomeYoureDrunkTimeComponents.hour = 3 goHomeYoureDrunkTimeComponents.minute = 45 goHomeYoureDrunkTimeComponents.second = 30 let goHomeYoureDrunkTime = userCalendar.dateFromComponents(goHomeYoureDrunkTimeCom
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
How do I link against .tbd files in Xcode 7?
I need to link libz in my project. Normally I would add libz.dylib under the Linked Frameworks and Libraries settings, but now there are only .tbd files and no .dylib files when you search the list of libraries to add. When building I get a warning: skipping file '/Users/me/xcode7/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.tbd' (unexpected file type 'text' in Frameworks & Libraries build phase)Then I build fails with linker errors because of missing symbols. Am I missing something new in the way libraries are linked?
29
0
104k
Jun ’15
Download Issues
Has anyone else had an issue downloading? My download was interrupted by a restart while I was away from my desk, when I returned, there was an OSX icon in my app list and it's desciption was Paused however there was no way to resume it. I tried to remove and reinstall the app but now when I click the Install link on the Download page in the developer Centre, the Appstore won't allow it to redownload saying the Download Code has already been redeemed.There doesn't seem to be a way to get another download code nor a way to resume a paused download, does anyone have any other suggestions?
2
0
402
Jun ’15