jeudi 29 janvier 2015

Sorting array of prices with Dollar sign

I have an array of strings. each string hold the price of item in dollars. Following is how my array looks like.



NSArray *prices = @[@"$12.12",@"$10.00",@"$12.11", nil];


I want to sort the array with dollar sign. I am aware of how to do it without $ sign. Any suggestions would be appreciated.


Thanks




Aucun commentaire:

Enregistrer un commentaire