UITableView editingStyle

Discussion in 'iOS Programming' started by DennisBlah, Nov 18, 2014.

  1. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    Hi all,

    I can't find anything like an 'editingStyleEdit' for a tableview.
    I would like to click a button, that will change the style of the tableview, with a nice icon for saying 'edit this record'.

    Only thing I have / can find, is Add and Delete. These are very fine tho! But I also need an edit option.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    The typical way to handle this is to drill down from the tableview and then allow the user to edit on the detail view. See, for example, the Contacts app.
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    Hi dejo, indeed this is the way I'm doing it now, what I'd like to do is.. ehm... longpress on a cell or swipe so it will show an edit icon.

    Is this possible?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Yes, it's possible. But is it desirable? Is there a reason to expect the user to use an edit approach that they are unfamiliar with and, perhaps, contradicts how they would expect to delete a row?
     
  5. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #5
    Hmmm yes, you got some points there. I'll just stick by this then :)
    Thanks for the feedback!!!
     

Share This Page