Post

Replies

Boosts

Views

Created

iOS Contacts Framework Change History Data using Swift and Xcode 13
On Apple's documentation of the Contacts Framework for iOS and Swift on their developer website, there is a section called Change History Data. It consists of a list of classes and one protocol. The protocol seems to be the most important item of the list - the CNChangeHistoryEventVisitor protocol. The protocol apparently has instance methods each of which use one of those classes listed. Where do I find documentation to use this protocol and these classes? Anyone ever use these before? Here's the list: class CNChangeHistoryAddContactEvent class CNChangeHistoryAddGroupEvent class CNChangeHistoryAddMemberToGroupEvent class CNChangeHistoryAddSubgroupToGroupEvent class CNChangeHistoryDeleteContactEvent class CNChangeHistoryDeleteGroupEvent class CNChangeHistoryDropEverythingEvent class CNChangeHistoryEvent class CNChangeHistoryFetchRequest class CNChangeHistoryRemoveMemberFromGroupEvent class CNChangeHistoryRemoveSubgroupFromGroupEvent class CNChangeHistoryUpdateContactEvent class CNChangeHistoryUpdateGroupEvent protocol CNChangeHistoryEventVisitor
3
0
1.8k
Dec ’21
Why is it when I set UITableViewController navigationItem.searchController with UISearchController, navigation.searchController still is nil?
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
1
0
389
Dec ’21
How to set Xcode to show pairings of beginning and ending of "clauses" determined by length from the left border of the code editor
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.
1
0
389
Dec ’21
What is dynamic shared object (DSO) handle that #dsohandle applies to in Swift?
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?
1
0
1.6k
Jan ’22
Is the Console app an app that runs on iOS that I can get straight from the App Store?
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
1
0
3.7k
Jan ’22
How to turn on feature in Xcode Editor
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.
1
0
457
Jan ’22
Has anyone figured out how to create a CNContainer in an iOS device?
Apple Documentation says that there is only one CNContainer in an iOS device of type local. Creating a container of type exchange requires using Exchange, and creating a container of type cardDAV requires a server also. Is there any way to create a container of type unassigned? I would need to do this programmatically in Swift to use in my iOS app. This question and the posts it mentions give no answer.
2
0
1.9k
Feb ’22
Is there any way to programmatically cause a text message or a phone call to not cause the phone to sound which has the Emergency Bypass on?
Hi. Is there a way to programmatically allow my iOS app to prevent all calls from making a sound or causing the iPhone to vibrate, other than unselecting Emergency Bypass from each contact? If not, is there any way to temporarily or permanently unselect Emergency Bypass on any given Contact? If not, is there any way of programmatically shutting off the iPhone?
0
0
975
Feb ’22