I have 2 Views, the first named "InterfaceController", and second named "LoginController". On LoginController, I have a button "Connexion", and I want when I click on this one, I'd like the button I called "TEST" be hidden.
So I tried : Interfacecontroller.h :
@interface InterfaceController : UIViewController {
- (IBAction)TEST:(id)sender;
- (IBAction)LoginSwitch:(id)sender;
}
Logincontroller.h :
@interface LoginController : UIViewController {
}
- (IBAction)Connexion:(id)sender;
@end
Logincontroller.m :
#import "InterfaceController.h"
#import "LoginController.h"
@implementation LoginViewController
- (IBAction)Connexion:(id)sender {
[self dismissModalViewControllerAnimated:YES];
InterfaceController.TEST.hidden = YES; (this is what I want to set)
}
.........
I don't really know how to do this, but I think it's easy. Somebody can explain me ?