Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Maximum number for LSApplicationQueriesSchemes?
In our POI Finder app Where To? I'm using -canOpenUrl: to detect if compatible directions apps are installed. There are more than 50 supported apps, many of them available in a multitude of country-specific versions with respective country-specific URL schemes.In WWDC session 703 (Privacy and Your App) it was only mentioned that we can white list the needed URL schemes in LSApplicationQueriesSchemes in Info.plist. Also the mechanism for legacy apps built for iOS 8 was described. (The first 50 probed schemes are implicitly whitelisted.)What was missing is a statement about a maximum number of entries allowed in the LSApplicationQueriesSchemes array.We need more than 50 different URL schemes to test for all countries the app is deployed in.
0
0
1.9k
Jun ’15
watchOS beta Installation
Before installing watchOS 2 beta on Apple Watch, please read the watchOS beta Software Installation Guide.Troubleshooting InstallationDevices updated to watchOS beta may not be restored to earlier versions of watchOS without assistance from Apple Support. If your device restarts into recovery or your device needs to be restored back to the current GM version of watchOS, visit Apple Support and follow these steps:Click Apple Watch.Click Send in for Service. Click Setup & Usage. Click Updating my Apple Watch OS. Click Talk to Apple Support Now. Your device must be sent in for service to be restored and will be erased and restored with the current GM version of watchOS. Once your device is received, it may take up to 3 business days to be serviced. The device you receive back will be the device you sent in. 
 Apple Authorized Service Providers and Apple retail stores are unable to perform this service. Countries in which this service is currently available are: Australia, Canada, France, Germany, It
0
0
2.3k
Jun ’15
Notes from Thursday Security Lab
System Integrity ProtectionQuestion:Will disabling SIP be available as a choices .XML at install time for the 10.11 OS? If not, what mechanism will be provided for automatic disabling of SIP for use with automated imaging processes for machines?Pain point: Not every environment will be able to access Internet Recovery. At the same time, straight cloning of existing disks is problematic.Answer:SIP is always off in the Recovery environment and the Installer environment. While booted from those environments, you will be able to make changes to a boot disk which is otherwise protected by SIP.SIP-protected files will still appear as restricted when listed with ls's -O, but they can be renamed, moved, deleted or changed.There will be a command line tool to disable SIP in the Recovery environment, separate from the current GUI tool. The GUI tool is in fact going to disappear in favor of the command line tool. This change will likely appear in Developer Beta 2 or Beta 3; check the release notes.Question:The
6
0
6k
Jun ’15
iOS Custom Keyboard Question
We had an inquiry if we can build an app and a custom keyboard wherein the app has messaging capabilities and the custom keyboard has a view that can be toggled to display the same messages in the app version.Is there any guideline that would prevent this app to be approved if it is offering a non-keyboard related feature in a custom keyboard? The keyboard still has the normal keyboard capabilities, the messages viewer is just a mode of the keyboard.I also know that incorporating messaging capabilities in the keyboard is a heavy process, and that affects the Trust where the keyboard might get unreliable at times. But assuming that we come up with an efficient and minimal implementation of the message viewer in the keyboard that doesn't affect the performance that much, do you think this will get pass through app store review process?
0
0
218
Jun ’15
Change Default SSH port (vs SIP)
After upgrading from OS X Yosemite to OS X El Capitan Developer Preview, I tried to edit /System/Library/LaunchDaemons/ssh.plist to change the default SSH port to a custom one. This is the process I've been using for a couple of years in previous Mac OS X versions.The problem is that El Capitan doesn't allow me to change anything in this folder (not even with sudo). The folder and its files are marked as restricted when I list the contents with ls -lO. The same folder listing in previous versions of OS X does not show restricted. I've recently to learned that this is due to SIP (System Integrity Protection) - https://forums.developer.apple.com/thread/4002 / https://forums.developer.apple.com/thread/4662.Question is, now with SIP, what's the politically correct way of changing the SSH port?
0
0
11k
Jun ’15
App crashes when trying to perform custom segue
I'm relatively new to using Storyboards and very new to segue programming, and I'm encountering a problem with a custom segue that I'm trying to implement in my App; or more specifically, a problem when trying to use an unwind segue.I've created two custom segues which are extending UIStoryboardSegue, CurlSegue and CurlSegueUnwind. In my Storyboard I have two ViewControllers, each associated with a class that is extending UIViewController. I connected a Button in the first ViewController to the second ViewController using a Control+Drag, selecting custom and specifying the identifier of my segue (i.e. CurlSegue). This works fine and my custom segue performs as expected without incident, bringing up the second ViewController.To then get the reverse working -- following this documentation -- I added a method named prepareForUnwind to the first ViewController's associated class implementation with the signature below:- (IBAction)prepareForUnWind:(UIStoryboardSegue *)segueOn the second ViewController (in
0
0
819
Jun ’15
Reply to unable to debug watchOS 2 app with Xcode 7
I managed to get the Apple Watch app working on the simulator, but it doesn't work all of the time, and I can't predict when it will work. One technique that has helped me is to uninstall the Apple Watch app on the simulator (click and hold on the app, and then click the 'X' that appears). Then try running your app from Xcode.I've also tried installing/uninstalling via the Apple Watch app. Open the Apple Watch app on the iPhone simulator, find your app in the list, and tap on it. Untoggle the option that says Show App on Apple Watch to uninstall the app, and then toggle it to reinstall the app.Hopefully these techniques work for others as well. Again, it doesn't work all of the time, but it's better than not being able to run your app at all!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Where is Content Blocker Extensions documentation?
Steps so far:1) Create Project with for example iOS/Application/SingleViewApplication2) Add Target iOS / Application Extensions / Content Blocker Extension3) Edit blockerList.jsonsample:[ { trigger: { url-filter: www.domain.com/file.png }, action: { type: block } },{ trigger: { url-filter: www.domain2.com/file2.png }, action: { type: block } } ]4) Install app5) change Safari Settings and enable new extension6) use Safari Browser=> result for me is currently, that the listed images are blocked, but not js files. The images are then not displayed on the website and on the loaded resources area in the Safari Web Inspector, if the device is monitored through the desktop Safari.
Topic: Safari & Web SubTopic: General Tags:
Jun ’15
Access to Facebook Friends
I am building an application and would like users to see their list of Facebook friends so they can see who is already using my application and add them to their contacts and be able to invite their friends that aren't using the application yet. I know that by default I get access to users friends that are using my application. Is there a way to get access to the rest so that the user is able to invite them to use the app?
0
0
531
Jun ’15
Reply to nsscrollview
If you already have an Xcode project, then (presumably) you already have a window in a storyboard or a XIB file. Go to that file and open up the Utilities panel on the right side of the IB window (View -> Show Utilities), then display the object library at the bottom (the 3rd of the 4 icons in the toolbar at the bottom) by clicking on it.Look for the scroll view in the list of available objects. You can type scrollview in the text field that's now at the bottom to filter out the irrelevant items, if you want. Drag the scroll view object into your window (if XIB) or window view controller (if storyboard). You have several other tasks to complete before this scroll view is useful (size it and add autolayout constraints, add an outlet to your code that refers to it, etc), but at least you have the scroll view you asked about.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Reply to iOS 9 Beta battery life
I also found that turning off nearly everything in General/Search (except for Applications and Contacts) and flipping off Siri helped. I was getting 1.5 hours of battery performance before. I'm now at 9 hours with 48% of my battery still left on the iPhone 6.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Can you create a Set of a single protocol?
The current definition of the Equatable protocol simplifies equality testing by guaranteeing that the two objects share a specific type.Your revised version that requires two independent Equatable objects as parameters to == doesn't provide that guarantee, so every implementation of .isEqualTo() would need to perform some kind of type checking. There's really no reason to have .isEqualTo() require an Equatable parameter, so it might as well just take Any.And when you do that, it's actually very difficult to determine how to compare two arbitrary objects... how do you determine whether or not there is a way to compare them, other than pointer identity (===)? How do you tell the compiler/runtime which other method/function to use that compares those two objects more accurately (particularly value types, which may be equal but different copies)?
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Accessing data via shared data container vs openParentApplication:reply:
Hi,I am just starting to make an apple watch app/extension for an app that I already have on the iPhone. On the iPhone the app has a core data store that it uses to store data. Looking at Apple's documentation it seems that the right way to access this core data store on the watch would be to setup the data store in a shared app group container.To do this I would also need to perform the following steps :1. Migrate the existing data store from the current location into the shared container on app startup (at least the first time)2. Take care of cases where the core data store is encrypted (we encrypt the sqlite DB underneath) and also figure out if that will conflict with the migration in step 1.The steps above are possible to do although they are not trivial.I was wondering what issues would there be if I was to avoid this step altogether (using the shared container) and simply called openParentApplication:reply: everytime my watch app needed data ? My gut instinct tells me that this method would be
0
0
213
Jun ’15
Help passing managedObjectContext through segue
I have a simple app that I am developing. It stores one line to do list items in a core data model. I am completely new to core data. What I am trying to do is pass my managedObjectContext from my main viewcontroller to my second viewcontroller.This is the prepareforsegue that I have:-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([[segue identifier] isEqualToString:@EditItemSegue]) { NSIndexPath *indexPath = [self.tableView indexPathForCell:sender]; Item *item = [[self fetchedResultsController]objectAtIndexPath:indexPath]; EditItem *destination = (EditItem *)segue.destinationViewController; destination.managedObjectContext=self.managedObjectContext; destination.toDoItemName = item; } }Question 1: Is this correct?Question 2: On my second viewcontroller, how do I grab the moc? I now how it works if I am using SQLite but I think I am getting things confused.Alsodestination.toDoItemName = item;This line complains: incompatible pointer types assigning nsstring to itemI know what
1
0
167
Jun ’15