Multiple cell selection In tableview

后端 未结 5 1841
無奈伤痛
無奈伤痛 2020-12-20 03:56

I want to upload photos to twitter , facebook and twit pic and many more. I took this in Array and displayed in Table view. I am using shareKit . I coded like if I select on

5条回答
  •  半阙折子戏
    2020-12-20 04:36

    You can manage it in an array that which cell is selected or which not, when you select a row then in didSelectRowAtIndexPath update that array according to above condition and use that array when you are uploading images. For example - u have an array which have dictionary two objects for key @"image" and @"isSelected" and populate the table with this array and when you select a row then access the element from array as a dictionary object at indexPath.row and update that dictionary "true" or "flase" for key "isSelected".

提交回复
热议问题