this is what i want to achieve. When user tap on a cell, it expands showing some extra buttons on it. Any tutorial or sample code in swift? As i am a newbie, a beginner level and detailed approach will be appreciated. https://www.dropbox.com/s/1jsrxv6nw03p5gk/profiles.png?dl=0 in this snapshot blue cell is selected one and white cell are normal cells.
Asked
Active
Viewed 1,075 times
-1
-
have you try to search on google? there is lots of result for this – Divyesh Savaliya Aug 22 '16 at 12:19
-
yes, i tried, but nothing helping me. mostly tutorial are teaching self resizing thing using autolayouts. – Aqeel iqbal Aug 22 '16 at 12:21
1 Answers
0
Use like this;
Add property
var selectedCellIndexPath: NSIndexPath?
Add your custom Heights
let selectedCellHeight: CGFloat = 88.0
let unselectedCellHeight: CGFloat = 44.0
After add custom height tableview codes
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
if selectedCellIndexPath == indexPath {
return selectedCellHeight
}
return unselectedCellHeight
}

SwiftDeveloper
- 7,244
- 14
- 56
- 85
-
this exactly what i am doing, but the resized cell overlaps the neighboring cells, not completely but from the top and bottom part. – Aqeel iqbal Aug 22 '16 at 16:55