Manu
Manu

Reputation: 4750

Add segmentController on Navigation Bar through xib

Can any one please tell me how to add segmentController on Navigation Bar Using xib but not using storyboards ? And its for iphone only not for ipad.

Upvotes: 1

Views: 194

Answers (2)

AppleDelegate
AppleDelegate

Reputation: 4249

Drag UIToolBar at the top of your XIB..Then Drag UIsegmentControl on it..This way u shall get a custom navigationBar..

if the default iphone navigationBar shows up..add the following code in its viewWillAppear

[self.navigationController setNavigationBarHidden:YES];

Upvotes: 2

Related Questions