KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an NSArray declared as such: @property (nonatomic, strong) NSArray *arrayRefineSubjectCode; I have the array elements manually filled out as below: arrayRefineSubjectCode = [NSArray arrayWithObjects: @" BKKC 2061", @" BKKS 2631 ", @"BKKS 2381 ", nil]; So how do I remove starting and ending whitespace and make each array elements to become as these: arrayRefineSubjectCode = [NSArray arrayWithObjects: @"BKKC 2061", @"BKKS 2631", @"BKKS 2381", nil]; I have tried using "stringByTrimmingCharactersInSet:" but it only works for NSString. Kinda confused here. Please help...
Tags (comma-separated)
Save Edits
Cancel