I'm trying to use Apple's sample project with expand/collapse UITableView sections https://developer.apple.com/Library/ios/samplecode/TableViewUpdates/Introduction/Intro.html The problem is that I'm trying to use it with CoreData NSFetchedResultsController, and I don't know how to change Apple's code to work with it.
How to use Apple's TableViewUpdates collapsable table view with Core Data and NSFetchedResultsController?
121 views Asked by saltwat5r At
1
There are 1 answers
Related Questions in COCOA-TOUCH
- How to get MetricKit SignPost Metrics data formulated into battery usage % for feature wise usage in iOS app?
- Clicking the right mouse button. Mac M1 (Designed for iPad)
- iOS Swift : How to detect that other apps are being use by the user or not?
- Text background color for newlines in TextKit 2
- How to build ios release bundle in flutter app?
- will my application be rejected if i use UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication
- Check number of touches in hitTest - Swift
- CallDirectory app extension runs out of memory without beginning request
- How do I properly design my own custom table cell?
- Reorder multiple items in a UICollectionView
- How can I transfer data between two files without segue?
- Deleting from the start of the UITextfield clears the whole textfield
- Error Running terminal command in Mac App
- How to get C char * string value in swift?
- TextView adds bottom padding/space when text is one line
Related Questions in UITABLEVIEW
- How to make tableview reload correct data?
- UITableView hierarchy is not in a single line
- How to delete the space between UITableViewCell in plain style UITableView on visionOS?
- Dropping Pin into Map view when table view cell is selected
- UITableView not showing class array data
- Inconsistent Index Path Printing in UITableView Cell with UIButton Inside
- Potential race condition on Combine's @Published property wrapper
- UITableView gets cut off at the bottom / UIScrollView, UITableView, uitableviewdiffabledatasource
- Cannot Convert Custom ExpyTableView Type in Swift
- How to create the following design using Swift UIKit?
- UITextView textContainer.exclusionPaths not working well
- The content of UIHostingController has a weird offset when it is placed in each uitableviewcell
- UITableView's cellForRowAt not being called
- How do I inject reference types in a table view cell and reload the row of the said cell without causing a memory leak?
- Animation in UICollectionViewCell Stops When Reloading Array Data
Related Questions in CORE-DATA
- Why/how does a SwiftUI view's identity depend on the value of its `@StateObject` member variable?
- SwiftUI - how to include a second filter to retrieve CoreData
- Display coredata value in widgetkit - SwiftUI
- CoreData NSValueTransformer cannot be found after adding new Core Data version
- About coreData paging queries
- Core Data: SortDescriptor based on first in to-many relationship
- Troubleshooting Core Data Lightweight Migration: A Real-World Challenge
- The most correct way of NSManagedObject initialization
- Uploading Image in CoreData BinaryData Component, But While Fetching Image i Got Upside Down Image Problem
- Is it necessary to deploy a CloudKit container to production?
- In Swift, videos appear if I take a video, but not appearing if I have just taken an image
- Enum with associated values in Core Data
- EXC_BAD_ACCESS (SIGBUS) KERN_PROTECTION_FAILURE when calling Singleton's function inside a Timer's closure
- Concerns Regarding CoreData Lightweight Migration Impact on CloudKit Schema Deployment
- "Cannot find 'EntityName' in scope" in parent app with development pods
Related Questions in NSFETCHEDRESULTSCONTROLLER
- iOS TableViewController: attempt to perform an insert and a move to the same index path
- NSFetchedResultsController doesn't update data when it saved to CoreData
- Error message: Assertion failure in -[UITableView_Bug_Detected_In_Client_Of_UITableView_Invalid_Number_Of_Sections:], UITableView.m:2615
- How can I sort an NSFetchedResultsController by localized values?
- NSFetchedResultsController didChangeContentWith uses temporaryID of a successfully saved Object
- EXC_BREAKPOINT on NSFetchedResultsController.performFetch() because of -[CFString isNSString__]: message sent to deallocated instance
- Subclassing NSFetchedResultsController
- Fatal error: UnsafeRawBufferPointer with negative count on deleting object(s) from Core Data/NSFetchedResultsController
- How to fetch entities based on order of insertion via NSOrderedSet relationship?
- How to get NSSortDescriptor to sort based on array order?
- How to switch between different CoreData Entities in NSFetchedResultsController?
- NSFetchedResultController Modifying Core Data In Modal View
- Ads between cells of UITableView which uses Core Data with NSFetchedResultsController
- Unexpected behaviour - unable to access new elements in an array driven by an NSFetchedResultController (SwiftUI)
- Fatal error fetching Entity with NSSet using FetchedResultController
Related Questions in MAGICALRECORD
- Case Insensitive Compare with Magical Record library(Core Data) and Swift
- Is there a way to save NSManagedObjects 1 at a time
- How to migrate core data model from 'xcdatamodel' to 'xcdatamodeld'?
- Objective-c NSXMLParser with Coredata takes too long to parse and store data
- Migration Relationship To-One to To-Many Result on Empty NSSet
- I am trying to fetch latest added data from Magical Records
- MagicalRecord throws relatedByAttribute error
- Saving NSManagedObject via MagicalRecord does not work
- How can I properly fetch data using MagicalRecord for Swift 4?
- How to fix app (using coredata) freeze issue on iOS12
- predicateWithFormat returns wrong Core data object
- How to use generics to return all objects for specific type of NSManagedObject?
- MagicalRecord - how to deal with deprecated methods?
- Fatal Exception: NSInvalidArgumentException +[NSMapTable cde_strongToStrongObjectsMapTable]: unrecognized selector sent to class
- EXC_BAD_ACCESS KERN_PROTECTION_FAILURE
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The simple, if not very pleasant, answer is to store the expanded / collapsed status into the Core Data store and then use a predicate with the FRC request so you can change the store contents and it will automatically update the table.
Alternative could be to mutate the data you get from the FRC when the table view requests info from the delegate, which is also messy.
Depending on your data you could use multiple FRCs, one for each section, though this may not be very extensible.