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

learn more… | top users | synonyms

0
votes
1answer
18 views

'NSInvalidArgumentException', reason: '-[__NSArrayM identifier]: unrecognized selector sent to instance 0x9f996a0'

The above error happens in this line: _nextRegionsArray=[[NSMutableArray alloc] init]; [_nextRegionsArray addObject:_geofences_ending_regions[_positionOfRoute]]; where _nextRegionsArray is ...
0
votes
1answer
33 views

How to initialize NSArrays / NSMutableArrays when declared as properties

I need some help in understanding how to use NSArrays / NSMutableArrays as properties. What property attributes should the arrays be : strong or copy ? In which case should I use which attribute? ...
0
votes
3answers
54 views

NSMutableArray is empty if called from outside?

I have an app that reads from an sqlite table and saves the data in an NSMutableArray that is declared in the main ViewController class subclass of UIViewController, this method is called at ...
1
vote
2answers
53 views

Observing NSMutableArray , used Array Accessors but still no luck

I want to observe a NSMutableArray in my class cSoundChannel. Hence after reading this post Observing an NSMutableArray for insertion/removal I implemented the key observing in this manner. For ...
1
vote
2answers
35 views

TableView scroll paging with JSON

I'm newbie in objective -c. I have a problem; I'm getting and parsing from a JSON and writing them to a tableview with array. This is clearly and nice result. But i want to get second page when i ...
1
vote
1answer
20 views

object at index updates whole nsmutablearray

I have an NSMutableArray with multiple products. Each product has an amount. I want to update the amount of the associated product when a stepper is clicked. But all my products (whole ...
-1
votes
1answer
28 views

Finding length of the array within the array in xcode

In .h file, NSString *deal_desc,*terms_cond,*merchant_desc,*locationaddress,*locationcity,*locationstate; Trying to find the length of the 'detailarray', so that it could help me to allocate the ...
-4
votes
3answers
47 views

How to add objects to NSMutableArray from another array [on hold]

I have an array "names" which contains names starting with letters a, b and c.(like anju,chandu,basha,chitra,amith,baskar) I have three NSMutablearray as,bs and cs. Now the question is how to get ...
1
vote
0answers
17 views

Parsing stack-trace of a crash

In one of my apps I have a very common crash. I have this report in bugsense : *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array And this stack trace after symbolication: 0 ...
-1
votes
1answer
104 views

NSMutableArray Resetting Itself?

I am having an issue with NSMutableArray wiping its contents. Consider my code: (int i; is in my file's .h as is NSMutableArray* newFileControllerArray) -(void)awakeFromNib{ i = 0; ...
0
votes
1answer
38 views

Compare array elements with eachother, on duplicates add a certain property together?

I'm trying to loop through my array and find duplicate objects based on the name properties of the objects in the array. Once a duplicate is found I need to combine these objects, the name and unit ...
0
votes
1answer
58 views

NSUserDefaults doesn't work

I am new in programming and i have one problem. I create app, with two views. First is tableviewcontroller and second is view controller. from second view i sending data into my tableview trough ...
0
votes
3answers
41 views

Object doesn't get added to NSMutableArray [closed]

I have an NSMutableArray *myArray I am trying to add the objects to it but no objects get added to it. Code : @property(nonatomic, strong) NSMutableArray *myArray; -(void)viewDidLoad{ ...
1
vote
2answers
55 views

data not being written to NSMutableArray

I have an iOS app that pulls data from a server and persists it using CoreData. I have a UITableView that I am trying to populate with only select portions from a given core data attribute. Before ...
1
vote
1answer
26 views

Adding NSImage to IKimagerowserview

I am able to add NSImages to my NSCollectionView without having to first save them on disk. The images are fed into the collection view from an NSMutableArray. This way people can see the images ...
0
votes
0answers
6 views

NSMutableArray, store array or struct

I have an NSMutableArray that stores the x,y,z coordinates of 4 vertices (v1x, v1y,...,v4y,v4z). Is there a way to store the array/struct only instead of storing all individual points. So instead of ...
-3
votes
2answers
64 views

how to add elements in mutable array from another array on run time? [closed]

i am new in ios development , i have two NSMutablearray TableA and TableB . and TAbleA's are shown in element perfectly , the problem is that when i scroll the tableview , at this time Elements ...
-4
votes
1answer
27 views

How to pass NSMutable arrays to table view?

I am having three buttons in a view. and three actions for three buttons. In the first view i have declared three buttons and three actions for that three buttons. In the next view i have taken table ...
0
votes
2answers
64 views

Get a specific string from an NSMutableArray using NSDictionary

I'm learning iphone app development and working on something that allows you to enter two words and combines them. The two words and the combined word are entered into a dictionary and that is then ...
-2
votes
1answer
45 views

Add to NSMutableArray during fast enumeration

As the title goes I am looking to find out how you would add. The code I current have looks like this, though it fails to add simple to the bakeryProductArray per loop. I know you would use (i) if it ...
1
vote
0answers
87 views

How to add 10 more records to a `UITableView` when the user scrolls to the bottom of the tableView

I'm trying to add 10 more records to a UITableView when the user scrolls to the bottom of the tableView. I'm using scrollViewDidEndDecelerating: and then a -(void)getFeed: to get the data and store it ...
0
votes
1answer
32 views

writeToFile not working with NSDictionary

I looked around other similar questions about this but nothing really worked. I managed to write only one pair (object / key) of the dictionary (e.g.: setObject:itemProperties[0] forKey[0]) on my ...
0
votes
2answers
39 views

Why is an array declared in viewDidLoad getting an unused variable warning when it is used in another method?

I am getting an unused variable warning for the trucksArray array that I have declared in viewDidLoad. I don't understand why, because I am using it in another method within the viewController.m. I ...
1
vote
1answer
27 views

NSSortDescriptor not sorting my NSMutableArray?

I have an NSMutableArray that has NSDictionaries in it. I found a question on SO, and am using this code to sort this NSMutableArray: NSMutableArray { data = { etc... (for length) ...
0
votes
0answers
13 views

How do I return an NSMutableArray from within an ALAssetLibrary block such that it is not empty?

This is a clarification of a question that is still not answered. I'm setting it out as a new question because I have learned some more about what the problem might be, but I still have no proper ...
1
vote
1answer
24 views

How can i count and sort a NSMutableArray duplicate values

I've seen this question: NSMutableArray counting occurances of objects and then re-arange the array The solution comes very close to what i need. The solution I'm referring to: NSInteger ...
1
vote
5answers
73 views

How to create an NSMutableArray and assign a specific object to it?

I am just getting into Obj C, and I am looking to create an array of MKAnnotations. I have already created the MKAnnotation class called TruckLocation that contains the name, description, latitude, ...
0
votes
1answer
21 views

Issue related with modifying the value in an NSMutablearray

I am facing an issue with the values in NSMutablearray. I have two NSMutablearray, both are holding the same content using mutablecopy. The issue is that when I modify a value in one array, the ...
0
votes
2answers
57 views

UITextView displaying all the values from array

I stored some text value in server. I successfully fetched that text value and stored to local database file. Then added that values to array. when i display that array values to UITextView. But ...
0
votes
1answer
12 views

Getting exception from where I did not changed the code

I am trying to create a view that has many features, but I am getting an exception from this line in my code, [addedList addObject:name]; Exception, [NSMutableArray insertObject:atIndex:]: attempt ...

15 30 50 per page