How to retrieve a string from an object located in an array
just a quick question
I have an array with only one ob开发者_StackOverflowject in it which is a string.
How can I retrieve it into a string ?
when I do this :
NSLog(@"%@",[myUserInfo objectAtIndex:0]);
It prints the result right, but what I want to achieve is this :
localNotif.alertBody = the string in the array.
I'm sure it is an easy thing to do but I can't figure it out.
Could you help me please ?
Thanks,
Mike
This is probably a trick question. Have you tried:
localNotif.alertBody = [myUserInfo objectAtIndex:0];
精彩评论