I am writing a test project to learn to write everything in code. I want to do this way so that I can better understand what the Elements in Storyboard do for me behind the scene's

In my project I have several UIViewControllers which share the same UI elements. For Example I have a UITool bar at the top of the screen with several buttons in it.

Now I want to put that UIToolbar in a separate class so that I do not have to write it all out or copy n paste it in every controller.

Now I know I can achieve this by doing this:

```
#import "General_Add_ons.h" //the UIToolbar is properly set up in this file

@interface FirstViewController : General_Add_ons  

```

and then I just use `[self topToolBar];` //topToolBar is the name of the toolbar 

Now I just want to clarify is this the best and or only way to this?

Somehow I feel I should be able to do this:

```
    General_Add_ons *gao = [[General_Add_ons alloc] init];
    [gao topToolbar];

```

Am I thinking about this the wrong way? The first way seems to be limiting in case I have multiple external classes.

Thanks in advance.