In my app, there is a constant in a common class which defined as
#define IMG_INIT_URL @"http://www.xxxx/index.php"
Now i have a requirement of change it as a variable.But my problem is that i used this constant frequently in my code for example:
NSString *imgUrlString = [NSString stringWithFormat:@"%@%@",IMG_INIT_URL,[[[storeDet objectForKey:@"store_imgurls"] objectAtIndex:0]objectForKey:@"simg_imgurl"]];
When i changed it to a variable i have to retreive it through object or class method that requires a lot of editing in my code. So can i maintain the code as same as now(ie, accessing the variable without using object or class method)?