Created
May 7, 2012 21:43
-
-
Save casspangell/2630665 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Other class.h | |
//Include the needed method's class's .h | |
#import "AppDelegate.h" | |
@interface aWebView : UIViewController { | |
//Create the delegate | |
AppDelegate *appDelegate; | |
} | |
//OtherClass.m | |
//Call the method in the other class with the appDelegate | |
- (IBAction) klose:(id)sender{ | |
appDelegate = (SergeAppDelegate*)[[UIApplication sharedApplication] delegate]; | |
[appDelegate.mainViewController hideTheTabBar:NO]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ViewController.h | |
@interface MainViewController : UIViewController { | |
} | |
- (void)hideTheTabBar:(BOOL)hide; | |
//ViewController.m | |
- (void)hideTheTabBar:(BOOL)hide | |
{ | |
theTabBar.hidden = hide; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment