Reputation: 4750
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
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