Got it figured out, here's how you turn one viewController into a delegate for another:
In the .h of the parent controller -
@interface ViewController : UIViewController <NameOfDelegate> {
In the .m of the parent controller, once you create the new view -
newViewController.delegate = self;
and also:
- (void)functionToCall:(id)sender {
NSLog(@"Function Called!!!");
}
In the .h of the newViewController you're adding -
@protocol NameOfDelegate;
@interface newViewController : UIViewController/OR/TableViewController {
id <NameOfDelegate> delegate;
}
@property (nonatomic, strong) id <NameOfDelegate> delegate;
@end
@protocol NameOfDelegate
- (void)functionToCall:(id)sender;
@end
in the .m of the newViewController -
@implementation newViewController
@synthesize delegate;
and when you're ready to call the function in your delegate -
[delegate functionToCall:self];