pawel.kalisz
pawel.kalisz

Reputation: 1245

Adding cells to UITableView when all cells are static (designed in storyboard)

I have a UITableView with 5 sections. All sections contain 2 static cells. What I want to achieve is to insert a new cell to one of my section when user taps some button. I know how to add cells with animation when UITableView contains only dynamic cells, I have no idea how to do this with 100% static UITableView.

The point is to that in one of my cells I have a text input and a button. After user taps the button, input content must be validated. If validation fails then I want to add an extra cell with error info.

Thanks in advance for your help!

Upvotes: 1

Views: 183

Answers (1)

NSCry
NSCry

Reputation: 1652

Here you able to find how to add static cells using story board.Show configure table view as static cells and create outlets according to your app design.

enter image description here

Upvotes: 0

Related Questions