I want to perform changes in the code which was developed using iOS 3.0, so that it can run on iOS 5.0.
But the problem is this , the tag property of any control in iphone not taking the NSString value in iOS 5.0, while in iOS 3.0 there is no issue related to assign tag as a NSString.
I am getting this warning in iOS 5.0:
lview.tag=@"lblPatientDetail";
"incompatible pointer to integer conversion assigning to integer'(aka 'int') from NSString"
This warning is present all over the project which is causing high number of issues.
So is there a way where we can assign NSString as a tag value in iOS 5.0?
Use NSDictionary instead if you want to recognize an object by string. I will provide the example below on how to use NSDictionary.