This project is sample code for objc.io issue #4. Please check the article about a full stack core data application for more details.
issue-4-full-core-data-application's Introduction
issue-4-full-core-data-application's People
Forkers
jhondge lujingyu garethhallberg baorsmile pcannon67 bycode torinkwok mingsai darty82 carlos-wong seedante tiger6688 radianttap kaizhang890 benjaminsnorris jkereako mylearninghardsource jianfenggao foxcoder caosc900224 unculturedswine nathanchen turtleeeeee advinjuni jojomaenbin binhho vonrain xiaonan0527 various samcal tiger8888 xiongsagit xiaobaohui jinyouli chengxiaoyu00 s eyebrow farteen opensourceios qsw1214 13hoop flysouler meta4github smartycz sanfreefeng qiusheng2011 pk-codebox-evo fengyueran mitchellporter icewiki adamnemecek songzhou21 dogskool majacqissue-4-full-core-data-application's Issues
Core Data not firing fault when accessing relationship attribute?
I am using the model described in this chapter under the Entity Hierarchy vs. Class Hierarchy however i am running into the problem where Core Data is not firing a fault when I access an attribute on a relationship. ie
manager.employee.name
To get the fault to fire i have to use:
[manager valueForKeyPath:@"employee.name]
Any ideas on how to remedy this? I am also a little concerned about what else might not be going on behind the scenes?
I have also gone into a little more details about more data model in this SO post:
Pull to create item broken in iOS7
I realise the point of the app is to demo core data (and I learned so much from it!), but the pull to create logic is broken in iOS 7 because the default content offset for scroll views in a navigation controller is not 0, it's -64.
Cell selection doesn't animate unhighlight when going back
Because un-pausing the fetched datasource reloads the table the selection is lost so there is no deselect animation. There are a few options to fix it:
-
Don't pause the FRC but as of iOS 13 we get warnings when updating the table that is not in a window (The NSAssert in didChangeObject also needs removed).
Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window).
-
Reselect the row after the reload, after a selection the cells must be forced to update in a call to either
visibleCells
orcellForRow
in ananimateAlongsideTransition
block before superviewWillAppear
. -
Keep FRC working and store all the table changes in block operations and replay them in a
performBatchUpdates
call, i.e. defer the updates as Apple suggest in their warning:
This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.