I would like to use tableView to have 2 static cells on top of the list of dynamic cells. As far as I understand, I should use a dynamic prototype tableView. But I do not understand how to add 2 static cells and design them, for example. Add a text box to the first and a label to the second.
What should I do in my storyboard? And what should I do inside the controller? How can I distinguish statics from dynamic cells?
Can someone give me, as a bloody beginner, some guidance on where to start? Many thanks!
EDIT: I tried this for testing:
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 5 } override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("cardCell", forIndexPath: indexPath) as CardTableViewCell
this leads to the following: 
Later, when I use real data, I will skip the first 2 rows of data ... Can I somehow "reset" the row counter after creating my static cells?
And how can I change 2 static cells? To add a text box and labels? Or should I do this programmatically?
ios uitableview swift
user1555112
source share