0

I have an Xcode Objective-C project that does not use storyboards.

I have the following UITableViewController.

#import <UIKit/UIKit.h>

@interface MyViewController : UITableViewController

+ (myViewController*)myViewController;

@end

I want to drag and drop a Toolbar UI control onto the xib file but when I drop it just flies off the control and will not stay.

I see solutions where if I do the following then it will allow me to drop it on: "select your UITableViewController in your Storyboard and go to Editor-Embed in-Navigation Controller. Then select your newly-created NavigationController and in its Attributes Inspector check "Shows Toolbar"" How to add a Toolbar to UITableViewController

But my project does not use storyboards and therefore this option is not available to me (Navigation Controller is grayed out in the menu)

How can I do this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Harry Boy
  • 4,159
  • 17
  • 71
  • 122

0 Answers0