简体   繁体   中英

How Expand the table view cells?

我想知道单击一行时行的大小将如何增加和扩展。.请给我一些建议

If it goes for all rows: Use a variable cellSize for creating every cell, and when the table gets initially created, use that cellSize. In the didSelectRowAtIndexPath, increase the value of that cellSize and do a [tableview reloaddata]. That should do the trick...

If it goes for one row, you should check when creating the rows if the value in the array (the array you want to view in the table) is the correct value, and if so, increase the cellSize, if not, use the original cellSize. Not sure if this last part works, but I can't really think of anything why it wouldn't. Try it out and let me know!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM