Giter VIP home page Giter VIP logo

issue-4-full-core-data-application's Introduction

issue-4-full-core-data-application's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

issue-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:

http://stackoverflow.com/questions/19718724/core-data-not-firing-fault-when-accessing-relationship-property/19719333?noredirect=1#19719333

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:

  1. 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).

  2. Reselect the row after the reload, after a selection the cells must be forced to update in a call to either visibleCells or cellForRow in an animateAlongsideTransition block before super viewWillAppear.

  3. 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.