Hi,
I've got a class called RootViewController with this:
Test *myLevelObject = [[Test alloc] init];
[myLevelObject afficher];
It is supposed to call my method -[ Test afficher]
but there is no warning or error and it does enter the method. Any ideas? thx
Declaration of test class :
test.m :
#import "Test.h"
#import "RootViewController.h"
test.h :
#import <UIKit/UIKit.h>
@class RootViewController;
@interface Test : UIViewController <UIActionSheetDelegate,UITextFieldDelegate>{
-(void) afficher{
NSLog(@"hello");
poids.text = [NSString stringWithFormat:@"lol"];
labelalco.text = [NSString stringWithFormat:@"cac"];
}
it show in console "hello" but it doesnt execute my 2 line of code.
ok now i tryed to do UIAlertView and it works but it fails only when i use the variables that are initialized in Test.h with interface builder.
Initialization :
IBOutlet UILabel *labelalco;
Interface builder :
this is another screen shot of where the test and the 'drink' section which is rootviewcontroller is shown .
THANKS