how to add data separately in cell of tableview separately - ios

I'm having three buttons on table view cell and have to show some text on label below it but when i'm clicking on button and selecting text it shows in all row and if second button clicks data of first label get blank so is their any way to fill data seprately to cell of table view

Yes it is you have to test for indexPath to see if that cell will display or not what you want. And keep in mind that cell are reused so you have also to remove content from cells or use different cell identifiers for each type of cell.

Related

Change individual cells in UITableView

Need your advice:
I need to change view of all cells, when one exact cell is selected.
Par example, I tap on the 5th cell and it changes the color of 4 previous cells
One of the cells can't be selected when the other ones are selected.
Par example, the 5th cell can't be selected when one (or some) of the previous ones is selected.
So add logic to your tableView(_:didSelectRowAt:) delegate method that tells the table view to reload the affected cells. (You'll need to reload both the 4 previous cells and the 4 cells prior to the previously selected cell.)
Then update your tableView(_:cellForRowAt:) method to set the color of cells based on the currently selected cell.

nested horizontal collectionview in auto size tableview cell exanding height make collection view scroll reset when reload cell for row accured

i have table view for showing product detail and each part is tableview cell,
in one of my tableview cell that is showing sizes and stores that has that size like this
and
when the user click on one of collection view items tableview expand to show stores.
if i update root tableviewcell constraints i need to reload that cell
after reloading collection scroll will rest
i tried beginUpdates and endUpdates for root tableview after changing constraint it will work but in some situation it will show a blank cell
what's wrong in my idea
in summary :
how to expand tableview cell without reloading and refresh cell view .i think both questions are equal
Change the constraints in the tableView and add to model the currently selected collectionViewCell and scroll to it with no animation in collectionViewCell awakeFromNib method the default value is 0 which means no animation will happen [the model I mean here is the model of the tableView from which you display every tableViewCell]

UICollectionView items in attribute navigator not showing

Items in attribute navigator(IB) for editing number of cell is not showing
It has to show like below image
And My XIB is
so i am not able to see and custom the cell on CollectionView itself.
In Collection View there is items not Cell. So when you increase number of items it'll increase cells in UICollectionView.

How to create tableview cell selection style color static?

I am trying to create tableview cell selected to show selection color statically upto go another view controller. Now I am facing whenever I clicking the cell its highlighted. I want to show statically after selection cell.

How to create expandable table view in ios?

On click of table cell it will dynamically increase the label height and if user click on another cell previsoly opened cell will collapse and expand selected cell.I was try hard for this bt label text is not working well.I want increase the height of cell.exa- click on question cell it will expand the answer
Connect UITableViewCell to the code behind, have a state for that cell and on didSelectRowAtIndexPath change cell height to whatever value you want. Regarding of the state of the cell ( you can do this by checking its height as well ) shrink or expand the cell.
You can do this by adding another cell below "question" cell and make it visible or hidden on click as well.

Resources