Menu

[REQ] UITableView Toolbar with Edit/Done

James
2013-07-25
2013-07-25
  • James

    James - 2013-07-25

    I am impressed with these native controls. Their performance is great (especially with UITableView components).

    However, I miss an iOS feature for this component: the toolbar with Edit/Done buttons and storyboard. It is really easy to use in x-code, as described here:

    http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/TableView_iPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html

    I usually use this feature to add "edition mode" to the user where he can delete or order/arrange the items.

    I tried to do the same using a UINavigationController but it is not possible to add Edit/Done buttons to it in runtime.

    I also miss the SearchBar in that component, but this is not as important as the previous requirement.

     
    • Babak Yaghoobi

      Babak Yaghoobi - 2013-07-25

      Hi, james

      The Edition option work on TDPFTableView (see TableView 1 demo)
      we have CellEdit and EditAll in Tableview options->Editing yopu can set this properties for enable row delete or all deleting.
      Insertin and searchbar and reordering not implementated yet, but i will work on this features.

      thanks you feedback

       
  • James

    James - 2013-07-25

    Hello Babak:

    Thanks for the answer. I know that the edit mode works perfectly in version 2.0.1. However, without the Edit/Done buttons, how can you start/end the edition in an elegant way? Since I can not change the "Editing" button style in the toolbar or navigation components with the "Done" style in runtime, I can not get the desired behavior.

    I just thought this was a missing feature since I have been seing this "tool" in almost any AppStore Application using the tableview editing.

    Nice to hear that you will work with the search bar.

    C.U

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-07-25

    Ok,

    You right, I will fix changing toolbar button systemstyle in runtime next release.

    thanks your feedback

     
  • Diego

    Diego - 2013-07-25

    Hi James:

    I managed to get an approach to the Edit/Done button modifing the UINavigationBar component.

    I added a ButtonColor property (I couldn´t change the Item Style to bssiItemStyleDone).

    It is not the "perfect solution" because I can´t change the position of that button on the left side of the bar of the rootview. However it works.

    I guess Babak will purpose a far more good way to get that.

    In order to test it, replace the DPF.UINavigationController.pas original file with the attached one and then, uninstall/reinstall the components.

    After that, you can try the attached demo to see it in action.

    By the way Babak, do you know how can I go to the previous page in an UINavigationController programatically? What I mean is "simulate" the "Go Back" Button.

    Greetings

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-07-25

    Hi James, Diego

    thank you your idea,
    I added runtime add, delete, modify in tool bar

    see TableView 1 demo and ToolbarDynamic demo

    regards

     
  • Diego

    Diego - 2013-07-25

    Hi Babak. Great work with the toolbar.

    Would you mind to add the ButtonColor property to the UINavigationController?

    I attached the code based in latest version. (Commented with my name in every single change I did).

    By the way, you didn´t answer my previous question:
    "Do you know how can I go to the previous page in an UINavigationController programatically? What I mean is "simulate" the "Go Back" Button."

    Some feedback about the UINavigationController:

    • The StyleBar property doesn´t work, it always shows the Black Style.
    • Is it possible to change the BarButtonStyle in runtime like you did with toolbar?
    • Is it possible to add a BarButton on the left side of Navigation bar?

    Greetings!

     
    • Babak Yaghoobi

      Babak Yaghoobi - 2013-07-25

      Hi, Diego

      For next page use PushViewController
      For previous page use PopViewController

      please post new ticket for your "Some feedback about the UINavigationController"

      thank you

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.