iOS Code Snippet TableView: Draggable Items

Discussion in 'iOS Code Snippets' started by JanPRO, Oct 5, 2018.

  1. JanPRO

    JanPRO Well-Known Member Licensed User

    Hi,

    attached you can find a small module, which allows you to have draggable items in a tableview.
    Basically, it will add the following event to the TableView:

    _MoveRow (SourceSection As Int, SourceRow As Int, SourceItem As Int, DestinationSection As Int, DestinationRow As Int, DestinationItem As Int)

    Have a look at the example ;)

    Jan
     

    Attached Files:

  2. ilan

    ilan Expert Licensed User

    really awesome, JanPro!! i have not tested it yet but i am sure it works great. thanx a lot !! :)
     
  3. JanPRO

    JanPRO Well-Known Member Licensed User

    Btw.: Unlike I said in other threads, it's not needed to change the delegate of the TableView. Here it was possible to extend the B4ITableViewDelgate delegate class and override certain delegate methods.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice