I have an iPad app in which I get the device's UDID by the following code in the viewDidLoad method.
uid = [[UIDevice currentDevice] uniqueIdentifier];
uid = [uid stringByReplacingOccurrencesOfString:@"-" withString:@""];
I wanted to remove the dashes in the string.
Later, in another method call, I try to access this uid string (which is a property of this class),
NSLog("Loading request with UDID: %@", uid);
and I get the following in the console window when I try to print it out.
Loading request with UDID: (
<WebView: 0x4b0fb90>
)
Why is it printing the memory address, instead of the string itself? Thanks!