while run iphone simulation, I show the error for "EXC_BAD_ACCESS" in Xcode
code is below :
Test.h
@interface Test : UIViewController
{
int iWeight;
}
end
Test.m
@implementation Test
- (void)viewDidLoad
{
iWeight = 15;
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
**NSLog(@"integer Number is :%@", iWeight); // error occur**
}
If i click the Button of UIAlertView, Xcode occur "EXC_BAD_ACCESS" error at that code
I don't know why that code occur error. help me.