Andrea Fabbri
Andrea Fabbri

Reputation: 63

iOS - Adding view under navigation bar

I can't add a view under UINavigationBar (Navigation Controller), like the Facebook app. Any ideas on how I can do this?

enter image description here

Best, Andrea

Upvotes: 0

Views: 1605

Answers (1)

Souljacker
Souljacker

Reputation: 774

The custom view looks like a tableHeaderView. Which means you need to set your view as the tableHeaderView, which will then be placed on top of the tableView and underneath your navigation bar.

UIView *customView = [[UIView alloc] initWithFrame:yourFrame];
self.tableView.tableHeaderView = customView;

Upvotes: 1

Related Questions