It was very strange when I saw this on debugging my application.
int iTag = btnTemp.tag; //btnTemp.tag = 1
NSString *strFriendID = [NSString stringWithFormat:@"%i",iTag];
gave me strFriendID as empty string.
int iTag = btnTemp.tag; //btnTemp.tag = 1
NSString *strFriendID = [NSString stringWithFormat:@"%d",iTag];
gave me strFriendID as 1.
How can this happen?
i don’t know why you get this answer, but when i read your question i tried in my project but i get the value
Out Put
both gives me 1