UA-17470720-3

Jump to content


Photo
- - - - -

UISplitViewController Deleting an Entity Issue


  • Please log in to reply
2 replies to this topic

#1 Andrew_P

Andrew_P

    Jr. Member

  • STV 5.0 Pro
  • PipPip
  • 22 posts
Reputation: 5
Good

Posted 21 December 2015 - 10:51 AM

Hey everyone!

 

      I was doing some testing and i've come across a slight issue when deleting items in a UISplitViewController (This occurs in the CoreData sample).  The result of which is that if you delete an item in the master view, the item still displays in the detail view. The steps to recreate it are as follows..

 

  • Add two items in the master view controller.
  • Select the second item in the master view, so it's detail view is shown. 
  • Swipe across and delete the item in the master view.

 

It should be noted, if there is only one item or you delete the top most item it'll work fine! I'm currently running with the idea of calling this code..

 

    recordListModel.sectionActions.didDeleteItem = ^(SCArrayOfItemsSection *section, NSIndexPath *indexPath){
              
        [section.ownerTableViewModel dismissAllDetailViewsWithCommit:NO];
    }; 

It seems to work! Though if anyone has come across a better solution, let me know :)

 

Andrew

 

 

 

 



#2 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 21 December 2015 - 08:18 PM

might be like this?

http://sensiblecocoa...-item/?hl=split


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#3 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 22 December 2015 - 09:02 PM

Thank you so much Andrew for reporting, this will be fixed in our upcoming release.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users