How do I sort an array of dictionary objects based on the value of the dictionary? I understand I should use the sorted method of the array, but I don't understand the notation that uses $0.1 and $0.0. Where is the documentation on that?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
What is that feature called that shows a picture of the entire contents of the file on the right-hand side of the editor and shows it very small like it's zoomed out and shows the part of the file that is currently showing in the editor in a different shade in the picture? I am describing this to the best of my ability. I hope it comes across clearly.
Would someone explain something about this content I got from this URL to Apple documentation?
Logging
”You view log messages using the Console app, log command-line tool, or Xcode debug console. You can also access log messages programmatically using the OSLogframework.”
I’m not sure what Console app runs on. Is that an app on macOS? I’m not really sure what to ask really. I’m looking for a way to get debug data from people using my app who download it from the App Store, so they won’t be using TestFlight.
I did a search on Google but didn’t find what I needed to know. I’m trying to connect to the App Store on my iPhone, but it’s not able to connect. That seems to happen often for some reason.
I wonder if this is talking about the Console app that I’m wondering about? https://help.dayoneapp.com/en/articles/470117-using-ios-console
Does Cocoa Touch provide a convenient way for apps to perform logging? Perhaps something similar to the print() command except it is kept after the app is installed?
I'm looking at this Swift documentation on Literal Expression, particularly the #dsohandle literal. It's the last line in the table.
I can't find any documentation by Apple for "dynamic shared object (DSO) handle", as it says in the very right-most column. When I do a search for "dynamic shared object", I find information for technology by other companies.
Anyone have anything you can tell me about this?
In the context of OperationQueue, specifically in the documentation for the waitUntilAllOperationsAreFinished(), addOperation(Operation), and addOperation(()-Void) functions, what does "receiver" refer to? Does it refer to the instance of OperationQueue that calls the function?
How do I turn on that setting in Xcode that allows me to see how the beginning of a loop or if statement lines up with the ending of the loop as far as the number of tabs or the distance from the left border of the code editor. I have seen this on by default before. I don't know what it's called, so I don't know hot to search for it in Xcode help or on the internet or on forums.
My DerivedData folder is supposed to be in Library/Developer/Xcode/DerivedData. Why is it not there. Is there a setting in Finder that is hiding files from me? Did my Xcode get installed with folders in a different location than usual?
Recently, the items in Project navigator of all my projects show as black instead of in color like before.
What's causing this. I also noticed other changes when I create a new iOS app project.
For some reason, my Xcode project won't run. I tried clicking on the run button, and I tried clicking on the Run option in the Product Menu. I also clicked on the Clean build folder under the Product menu.
For some reason, when I set UITableViewController navigationItem.searchController with a UISearchController, it doesn't take it.
Here is my code:
let searchController = UISearchController(searchResultsController: nil)
if #available(iOS 11.0, *) {
print("?", navigationItem.searchController)
print("!", searchController)
navigationItem.searchController? = searchController
print("?", navigationItem.searchController)
} else {
tableView.tableHeaderView = searchController.searchBar
}
Here is the debug window:
? nil
! <UISearchController: 0x105077600>
? nil
I noticed that when my app changes the contact store, the CNContactStoreDidChange notification fires in my app. How do I check if the notification fired because my app changed it. Is there a way to know which app made the change to the contact store. I need to know so I can write code to run only if the contact store was changed by another app instead of my app.
I am writing an iOS app using Swift and Xcode 13.1. I am using the Contacts Framework, and I read that each app has a default contacts container, and the default container in an app can be different than the default container in another app, and there is not a default container for the entire device.
What determines which is the default container for the app made by an Xcode project? I didn't set the default container for my app and somehow the contacts container for a Google account became the default contacts container for my app. How do I use code to set the default contacts container for my app?
How do I find out which is the default container of Apple's Contacts app that comes with iOS? I would like to set my app's default contacts container to the same default container of Apple's Contacts app, if that is the contacts container that is saved on iCloud. If not, I would like to set my app's default contacts container to the contacts container that is saved in iCloud. I assume that only one contacts container is saved on iCloud.
Anyone know where I can get a list of all the UserDefaults keys? I can't find it in documentation.
When I use the Contacts Framework with Swift for iOS 15 using Xcode 13, when I use CNContactStore instance method unifiedContacts(matching:keysToFetch:), what happens to those CNContact objects that are not linked with any other CNContact objects, would they be returned as non-unified contacts, or would they be left out since they are non-unified contacts?