Posts

Post not yet marked as solved
3 Replies
1.7k Views
I created a UIListContentConfiguration, set the initial text and set it on the cell. Then I updated the text and was expecting the cell to show the new text and sadly that didn't happen. Here is some sample code: (void)configureCell:(UITableViewCell *)cell withEvent:(Event *)event { 		UIListContentConfiguration *content = cell.defaultContentConfiguration; 		content.text = event.timestamp.description; 		cell.contentConfiguration = content; 		 		[self performSelector:@selector(updateTest:) withObject:content afterDelay:3]; } (void)updateTest:(UIListContentConfiguration *)content{ 		content.text = @"Updated text"; } Then I noticed that cell.contentConfiguration is a copy property type. Perhaps the API could be improved to change it to a strong property type, and have the cell do KVO on the configuration's text so we can update afterwards and the cell will automatically update to the new text. The same way as how MKAnnotation and MKAnnotationView works for its coordinate, title and subtitle.
Posted
by malc.
Last updated
.
Post not yet marked as solved
1 Replies
770 Views
In session wwdc20-10650 - https://developer.apple.com/videos/play/wwdc2020/10650/ "Sync a Core Data store with the CloudKit public database" at 14:22, Nick says "NSPersistentCloudKitContainer can't use CKFetchRecordZoneChangesOperation with the public database, it has to use CKQueryOperation". I was wondering why didn't you use CKSubscription? Create a subscription for each record type and the CKQueryNotification can contain CKQueryNotificationReasonRecordDeleted. It's been a while since I worked on my own public database sync but I think that is how I did it. This is the second time I've heard of the sync design being affected by limitations of CloudKit and it worries me. The first time it was when you decided not to use CKReference and instead create your own relation records because you said CloudKit had a limit on the number of references. Personally I didn't think the number was too low and I didn't understand why it couldn't just be raised, and if you had paired that with the non-public CKReferenceActionValidate it could have been a very solid solution. This year Nick came across as a bit unhappy with the current state of the sync, it was sad to see, compared to how enthusiastic he was last year especially getting to mention conflict-free replicated data type something he seemed really excited about. I really hope all of this can be resolved and the team can be happy again.
Posted
by malc.
Last updated
.
Post not yet marked as solved
1 Replies
685 Views
I'm aware cell.textLabel is going to be deprecated from 25:40 in the video. I'm wondering in Storyboards is the cell prototype style also being deprecated? Because when I set cell.contentConfiguration it overrides the style chosen. Say if I chose the style right detail then when I set a configuration with a secondaryText then the cell appears as subtitle instead. Also, are Storyboards going to be deprecated in general?
Posted
by malc.
Last updated
.
Post not yet marked as solved
3 Replies
888 Views
I enjoyed watching the demos of the ChocolateChip app used in WWDC 2019 sessions 205 and 235, however not all of the source code was shown in the video, I was wondering if it would be possible for that project to be made available on the session video page? Because I have the following questions:What is the code for RecipesViewController.swift selectRecipe?- I was wondering if it performs a segue, also wondering if it selects a table row.What is the code for RecipesViewController.swift selectedRecipe?- I was wondering if it calls up to the split view controller to get the currently showing RecipeDetailViewController's recipe or if it simple relies on the table row selection.What does RecipeNavigationController.swift have in it?
Posted
by malc.
Last updated
.