Yuyutsu
Yuyutsu

Reputation: 2527

Add UIView to UITableView's header not in section's header

I am using UITableView's which contains two section (color and animals) but I want to two UIButtons at tableview's header not in UITableView's section's header

Can you please help me :) thanks

Upvotes: 1

Views: 948

Answers (1)

ChintaN -Maddy- Ramani
ChintaN -Maddy- Ramani

Reputation: 5174

You just have to drag and drop UIView in your IB and outlet it and set

yourtable.tableHeaderView = youroutletview; 

enter image description here

Now you can customize view as you want.

Upvotes: 3

Related Questions