I’m new to ios, trying to do something like this
self.dataArray = [dictionary valueForKey:@"LIST"];
{
"List": [
{
"FULLNAME": "FirstName, LastName",
"ID": "281"
}
]
}
I want to swap the value which is in ‘FULLNAME’, that is I want it to be LastName, FirstName
I tried various methods but it would not work. Can someone tell me how to accomplish this?
Thank you
Assuming you know how to do the dictionary manipulation, here’s one way to swap the elements in the string: