Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch([sender selectedSegmentIndex])
- {
- case 0:
- [aMutableArray sortedArrayUsingSelector:(@"NAME")compare:];
- break;
- case 1:
- [aMutableArray sortedArrayUsingSelector:(@"YEAR")(compare:)];
- break;
- }
- [table reloadData];
Add Comment
Please, Sign In to add comment