i have declared int variable totRecint as global but it is not getting assigned with value
(showing garbage memory location)????
but the string variable totRecstr gets a value from the array
(showing garbage memory location)????
but the string variable totRecstr gets a value from the array
Code:
@implementation SearchViewController
NSString *totRecstr;
int totRecint;
- (void)requestFinished:(ASIHTTPRequest *)request
{
NSArray *arryPage = [[request responseString] componentsSeparatedByString:@","];
totRecint = (int)[arryPage objectAtIndex:0];
totRecstr = [arryPage objectAtIndex:0];
}
......
@end