I have this class method in one of the classes.
When I call this method from another place, I get an EXC_BAD_ACCESS at the end of the method execution.
I am a newbie and I appreciate if any one shed some light.
Thanks
soma
Code:
@implementation MyStaticClass
+(NSString*)getBaseUrl {
NSString* baseUrl = [[NSString alloc] initWithFormat:@"%@://%@", @"http", @"www.mywebsite.com"];
return baseUrl;
}
...
...
@end
When I call this method from another place, I get an EXC_BAD_ACCESS at the end of the method execution.
Code:
-(IBAction)savePressed:(id)sender {
// save button is pressed
// validate the login credentials to save the data
NSString* page = [MyStaticClass getBaseUrl];
NSString* postData = @"username=name@gmail.com&password=123&x=76&y=12";
request = [[HttpRequestHandler alloc] initWithPage:page postData:postData delegate:self];
} // -> EXC_BAD_ACCESS here
I am a newbie and I appreciate if any one shed some light.
Thanks
soma