NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch.

learn more… | top users | synonyms

-9
votes
3answers
68 views

How to find array last element [closed]

NSMutableArray * arr = [[NSMutableArray alloc]initWithObjects:@"1",@"2",...@"n" ,nil]; how to get last position of this array Any help really appreciated Thanks in advance
0
votes
4answers
41 views

Grouping the NSArray elements into NSMutableDictionary

I have an NSArray some thing like in the following format. The group array is : ( "Q-1-A1", "Q-1-A9", "Q-2-A1", "Q-2-A5", "Q-3-A1", "Q-3-A8", "Q-4-A1", "Q-4-A4", ...
0
votes
1answer
36 views

Program crashing after adding subview from NSMutableArray

Right now I have a UIView with two subviews on it. I am trying to add another subview to one of those views, from a custom-made Card class. The problem is that the subview is coming from an ...
0
votes
3answers
77 views

Objective C why are the objects from my NSMutableArray disappearing?

I'm new to Objective-C and iOS. I'm having trouble with something that is probably easily corrected, but I have no idea why it's happening. I'll try to give a brief description of what I'm doing and ...
1
vote
2answers
77 views

how to set a property of an object inside a NSArray

I have written a class which has a property, I want to add instances of this class into a mutable array and after that I want to set the num property of the instances. but I dont know the correct ...
-1
votes
1answer
53 views

Passing an NSMutableArray as an argument, not working

I have a method that calls my API and I want to choose where the data goes so I set up the method like so: - (void)getTheDataFromURL:(NSString *)urlString intoArray:(NSMutableArray *)arrayData{ ...
0
votes
0answers
13 views

passing array to a tabelvew through segue

I have an app that shows a tablieview controller on startup, then its pushes to a viewcontroller where I type in a label and hit a button. When that button is clicked, it pops me back to the tableview ...
0
votes
2answers
63 views

NSMutableAray RemoveObject: Not Working As Expected

I have recently begun working with cocoa and Objective-C, although I am not new to software concepts, and I have come across some curious and unanticipated behavior in the NSMutableArray Class. ...
-3
votes
2answers
37 views

Split an NSMutableArray into other NSMutableArrays

I have an NSMutableArray with 50 entries - is there any easy way to split this into 5 NSMutableArrays each with 10 entries each.
0
votes
1answer
30 views

why does my for loop miss the first element in the NSMutableArray on which it operates?

I am trying to loop through an NSMutableArray of Persistent IDs of songs in my iPod Library, perform an MPMediaQuery with each ID, and initialize an MPMediaItemCollection from an NSMutableArray of the ...
1
vote
0answers
18 views

UICollectionView Cells Loading Same Items too many times

Here is the layout of my app. I have a UICollectionView in a Tab Bar Controller. I have two different XML files located on server. Depending on subscription purchases, one of two xmls will be ...
0
votes
1answer
31 views

NSMutableArray collection and @Synchronized blocks

In Objective C I'm using a NSMutableArray instance from various thread and I'm using @synchronized to make it thread safe. currently all my acces to this array are protected with a @synchronized ...
0
votes
1answer
17 views

NSMutalbeArray addobject but overwrite previous objects

current array is like (a, b, c), need to change their order, like(b,c,a),and (c,a,b),then add them to a new array, final goal is to get an array like (( a, b, c,), (b, c, a), (c, a, b)) codes ...
0
votes
1answer
28 views

Why are my mutable arrays and table views behaving unexpectedly?

I'm building a sign-in app. It has two table views. One lists people who have visited before (existingNames), and one lists the current people signed in (names). At certain points in my code the only ...
0
votes
1answer
49 views

Why data added in to array multiple times?

I load data from json and then add it to nsmutablearray like this: - (void)loadData { dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); ...

1 2 3 4 5 207
15 30 50 per page