Swipe to delete swift custom UItable - uitableview

I can create swipe to delete which works wonderfully on my standard UItable view but the same code does not allow editable on my UItable view that has a number of extra things in each row ? Any ideas as to why this might be the case and whether I can add this option
I am using swift only

Related

Swipe to delete tableview section [duplicate]

I am working on extended data and a UITableView. I am able to use swipe to edit and delete functions. I am wondering if it is possible to swipe and delete only section headers. If yes, how?
I am not sure what you want to achieve.
But if you want to have a swipe delete for a section header, the answer is, you can do it, but it requires some kind of programming. Essentially, you had to add a „section header delete button“ as a subview to the table views content view.
I suggest reading Ray Wenderlichs tutorial „How To Make A Swipeable Table View Cell With Actions – Without Going Nuts With Scroll Views“. This demonstrates how you can add swipe gestures to a table view cell.
However the same techniques (e.g. controlling the position within the scroll view) can be applied to a section views header.

UICollectionView Multiple Cells Selection Swift iOS

I have UICollectionView in my iOS app and I am using Swift. I want to make UI like below:
I this UI when "Select" button is not selected (in first image) Tab bar is visible, but when "Select" button is selected (in second image), a new bar is visible. This is used for multiple cells selection. I just want to know, Is this functionality available by Apple (built in) or I have to make it manually (by myself)? (I have searched, but could not find)
Collection View gives functionality to select multiple cells. Just write this code and you will be able to select multiple cells.
yourCollectionViewName.allowsMultipleSelection = true

selection and deselection in UICollectionView swift 2

I'm beginner in using Xcode7 and swift2. I used them to create collection view inside table cell.
I followed the tutorial in this link: https://www.thorntech.com/2015/08/want-your-swift-app-to-scroll-in-two-directions-like-netflix-heres-how/
Everything works fine, expect the selection when I selected one cell form the collection and scroll horizontally to select a different one the following happen:
1-the first selected one does not deselected.
2- the second one get selected,
now I have two selected cells and the app crashed.
I want the user to select one cell only from the collection, so I used didselect, and deselect method, but still not working as expected.
Any guidance or resources to solve this issues are appreciated.
For your collectionView set .allowsMultipleSelection to false

Swipe to Delete Section Header in UITableView

I am working on extended data and a UITableView. I am able to use swipe to edit and delete functions. I am wondering if it is possible to swipe and delete only section headers. If yes, how?
I am not sure what you want to achieve.
But if you want to have a swipe delete for a section header, the answer is, you can do it, but it requires some kind of programming. Essentially, you had to add a „section header delete button“ as a subview to the table views content view.
I suggest reading Ray Wenderlichs tutorial „How To Make A Swipeable Table View Cell With Actions – Without Going Nuts With Scroll Views“. This demonstrates how you can add swipe gestures to a table view cell.
However the same techniques (e.g. controlling the position within the scroll view) can be applied to a section views header.

How move/reorder cells from TableView1 to TableView2

I have several UITableViews, with different datasources in a iPad screen.
I need to copy/move a cell from the first tableView to the second, similar how is done with ListBox in other languages.
Now, I can reorder the cells, but the movement is restricted to the tableView. I want to drag the cell in tableView1 & drop in tableView2.
P.D. I'm open to use any other control to archive this. I take a look at AQGridView & DTGridView, however the layout is based in columns with different #items. If I can emulate columns with this controls or other then I can accept the workaround.
UPDATE:
I hope this links could help:
Observing pinch multi-touch gestures in a UITableView
This is the most close answer:
Drag and drop between two tables in ipad
I know how get a image from a view, I can detect the drag with a Gesture Recognizers, so I have all the setup in place but have not expertise in graphic development, so don't know how put this in motion...
This is definitely a very interesting question, and I wish I had the time to put together some test code to see if the idea I'm about to outline would actually work. My hope is that this will at least point you in the right direction.
UITableViewCell is a subclass of UIView, so I would create a subclass of UITableViewCell called something like DraggableTableViewCell so we can handle the touch events and then perform the following steps:
Create an instance of DraggableTableViewCell and configure it to appear like the selected cell.
Add the new cell as a subview of a view that is a common superview to both tables at the same location as the original cell.
Update the data source for the source table view and remove the original cell from the table view using deleteRowsAtIndexPaths:withRowAnimation:
Move the cell on the display by responding to touchesMoved:withEvent:
When touchesEnded:withEvent: is received, verify the cell is somewhat close to the other table view and determine the index path where to insert the new cell
Update the data source for the destination table view and call insertRowsAtIndexPaths:withRowAnimation:
Remove your draggable cell from its superview with a nice animation.
This entire process will need to be orchestrated by the view controller that controls the various table views on the screen.

Resources