Does the code crash, because of a circular reference?
MenuController: UIViewController
- (id)initWithNibName:
{...
TabsController *tabs = [[TabsController a
tough to tell without more info (are you using ARC, are you retaining/assigned the delegate, etc...) but per the iOS docs you are also using deprecated modalview methods. May be worth trying:
[self presentViewController:tab animated:YES completion:NULL];
and
[self dismissViewControllerAnimated:YES completion:NULL];
Your question is a little difficult to understand, but I gather you have a retain-cycle:
ObjectA retains ObjectB
ObjectB retains ObjectA
and neither object gets deallocated?
Your property for the tabDelegate should read:
@property (nonatomic, assign) id tabDelegate;
// ^^^^^^-This is the important bit, this stops the retain cycle.