1
vote
4answers
63 views

Objective-C: Copy Array, Modify Element (Object) in the Copy ONLY

I've read through many SO posts before asking this question and I'm guessing this answer was in there somewhere, but I didn't see it. I'm new to Objective-C and I'm trying to do a (seemingly) simple ...
0
votes
3answers
62 views

Filter NSArray using NSPredicate [closed]

I have an array which contains strings. Some of these string might be empty (@""). How does the predicate have to look like so that it filters the array and returns a new one containing only non empty ...
-1
votes
1answer
39 views

Having error with NSArray

Im having this error: 2013-05-30 21:07:05.330 SADD[5785:c07] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value ...
0
votes
2answers
48 views

CSV file parse to Array Objective-C

Hi I have a csv file and I would like to parse the information there on an array so I can use it on a map. Heres is what I have from the parsing part: NSString *filepath = [[NSBundle mainBundle] ...
0
votes
1answer
67 views

How to load array from web service?

I have a static array like.Here it is static array.I want to load from web service. e.g - (void)viewDidLoad { [super viewDidLoad]; tableData = [NSArray arrayWithObjects:@"Egg Benedict", ...
1
vote
2answers
47 views

How to implement custom object like NSArray

I want to implement an object named "XXXList" which will return a collection (not NSArray subclass), so that I can use it like an NSArray: XXXList *list = [XXXList list]; for(id object in list) { ...
0
votes
1answer
35 views

NSMutableArray memory allocation

I have an NSMutableArray with 14 indexes acting as a global NSArray, lets call it 'A'. In each of these indexes I have a sub-array (therefore I have 14 sub-arrays within 'A'). These arrays then form ...
0
votes
2answers
30 views

how to compare 2 NSMutableArray and get different number of value

I want compare 2 NSMutableArray values and check which indexPath is different and store this numbers of index in one array. for example I have these NSMutableArray : NSMutableArray *a = ...
0
votes
2answers
47 views

Objective-C, Getting a random object from NSArray without duplication

I have an NSArray with 17 object as follows (PS: those objects are dummy, just for making the idea clear): NSArray *objArray = [[NSArray alloc]initWithObjects: @"1",@"2",@"3",@"4",@"5",@"6" ...
1
vote
5answers
87 views

NSArray removeObject removes all objects in array

My project creates a bomb, an explosion, then checks for collisions in the explosions and finally delete the bombs that didn't get hit in a collision. This is explained in more detail here. The ...
0
votes
2answers
27 views

filtering array of core data objects for specific date or year or month or date range

I have an array of objects and one property of this array is NSDate. I need to create function to filter those objects based on specific date Like : Filter array for year 2013 Filter array for ...
0
votes
0answers
40 views

NSArray refuses to writetofile [duplicate]

I have an NSArray of objects that wont write to a file. Here is the object header: #import <Foundation/Foundation.h> @interface HSMenuItem : NSObject @property (nonatomic, copy) NSNumber *Id; ...
0
votes
0answers
49 views

Arrays repeating in Multiple sectioning of table view in objective c

I have 7 sections in a UITableView (Monday to Friday), and add button on every section's header and a "repeat to all days" button on first section's header,clicking on this button will repeat the ...
2
votes
3answers
76 views

Sort UITableView by text width iOS

I'm trying to populate a UITableView with an array in a particular order. So far I can change the order in these ways alphabetically character count I can run loops to reverse the strings in the ...
0
votes
2answers
50 views

How do I assign one Array to another Array in objective-c?

*emphasized text*So I'm using restkit to pull back a bunch of objects to display in a UI Collection view. I get my initial mapping result, which is an NSArray of MyCell Objects. I invoke the given ...

1 2 3 4 5 104
15 30 50 per page