Great iPhone web-services tutorial
http://www.iphonedevsdk.com/forum/iphone-sdk-tutorials/76730-webservice-how.html
http://www.iphonedevsdk.com/forum/iphone-sdk-tutorials/76730-webservice-how.html
If you want to get a address using GPS coordinates, you an use MKReverseGeocoder to obtain that info, however if you want to get a GPS coordinate using a address, you have to use JSON to access the data from google maps API.
Normally if you want to retain a variable, we have to specify that in the .h file.
lets say, I have a variable defined in .h, before using it on the .m file I have to initiate it, normally the initiating code is inserted some where on viewDidLoad if the variable is used through out the .m, however the dis-advantage with this format is that the variable will be initiated all the time the view is loaded, even when the variable is never used.
Following is the normal use of UIAlertView
if ([alertView tag] == 127) {
if (buttonIndex == 0) {
// do stuff
}
}
}
a great example
I guess this is valid not just for NSObject.