What I am trying to do is click a button (that was created in code) and have it call up a different view controller then have it run a function in the new view controller.>
NSObject * universalAppDelegate =
( NSObject * ) [ [ UIApplication sharedApplication ] delegate ];
It avoid having to include your AppDelegate.h everywhere. It's a simple cast that goes a long way, allowing to develop independent Controller and reuse them elsewhere without to worry about class name and so on...
Enjoy