-4

I want to set functionality like add or remove new social profile in contact, in my table view. here I attached screenshot. please any one help me on this . want to set this kind of functionality in my tableview

Divya Bhaloidiya
  • 5,018
  • 2
  • 25
  • 45

2 Answers2

0

Please add the code or include the details what you've tried already.

However there are many custom tableview controls are available.

Please look at MSCMoreOptionTableViewCell for iOS and customize a little bit to achieve your goal.

enter image description here

Also please look at the developer.apple - CreateConfigureTableView documentation and Customize Cells.

Shamsudheen TK
  • 30,739
  • 9
  • 69
  • 102
-1

I think its very easy approach. 1. Just have your add cell in second section of your table view 2. Then enable editing in table view 3. when user tap the add more cell just add new cell in section 1.

The delete action will take care of by default behavior. its easy to disable delete for section.

Enable UITableView edit only in a specified section

for changing the default delete icon refer this but this is not necessary.

Change default icon for moving cells in UITableView

I think there is no need of code.

Community
  • 1
  • 1
CoolMonster
  • 2,258
  • 25
  • 50