NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch. It is Available in OS X v10.0 and later

learn more… | top users | synonyms

1
vote
3answers
10 views

NSMutableArray has 6 (some example) items. 3 IDs and 3 arrays (info about those 3 IDs). How to remove those numbers (IDs)

( 65, 61, 82, { FOMobilePhone = ""; FOName = "XXX"; FOTitle = "PRODUCTION DIRECTOR"; FOWorkEMail = "[email protected]"; FOWorkPhone = "+12345"...
-2
votes
0answers
31 views

Swift 3 NSMuttableArray

I'll vey appreciate you for your help. I am declare new new empty array: var cellDescriptors = Any but when i try to use it in somewhere, i am always receive the same error = "Type 'any' has no ...
2
votes
1answer
70 views

Return NSMutableArray from completionHandler (Objective C)

I did post request to a web service and get response. I convert the response to NSMutableArray. My response in NSURLSessionDataTask and now I want to return NSMutableArray for using outside of ...
0
votes
1answer
20 views

remove Duplicate Object from NSMutableArray with keep sorting and all other fields

its My First Question for Apologies in advance for any mistake. My Question is Remove duplicate Value with keep Same Order that Array have. Like my array Format is:- ( { author = ""; ...
0
votes
2answers
46 views

NSMutableArray items are all exactly the same

I have a set of map annotations that I am iterating over to store into my own data model. I have checked with log statements to ensure that the coordinates are in fact different, which they are. ...
0
votes
1answer
37 views

How to store an NSMutableArray to another NSMutableArray in Objective-C

Here is my JSON and source-code which I tried: JSON: { "total": 2, "floorplans": [ { "_id": { "$id": "57fdd13e368e728c278328f6" }, ...
-1
votes
1answer
32 views

How to update NSMutableArray value in swift?

I need to update value in nsmutablearray tag is indexpath var itemsArray:NSMutableArray = [] self.itemsArray[tag]["post"]["post"]["likeCount"]as? Int = Int(count) I am getting some value for ...
1
vote
2answers
28 views

NSMutableArray auto updates with Dictionary in singleton

I have a weird problem. I have a singleton with dictionary in it. This dictionary is updated regularly in runtime. In a viewcontroller I access this singleton dictionary and create a new ...
0
votes
1answer
18 views

Why does NSMutableArray have duplicate objects?

I have some code that creates a string and adds that string to a mutable array. Here is the code: ExportBookData *abe = [[ExportBookData alloc] initWithCategory:@"ABE"]; abe.builtFileList = [...
0
votes
3answers
29 views

How to sort array of NSMutableDictionary store in NSUserDefault?

I have an array of NSMutableDictionary saved with NSUserDefault , I want to sort the array based on "timestamp" key (the value is a String) in each NSMutableDictionary : that the code I use to ...
0
votes
1answer
31 views

Add array object not init

I have a method that init my class object from JSON. The method like this: func getList (dic : Array<[String:AnyObject]>) -> Array<Dog> { let dogs : NSMutableArray = ...
0
votes
1answer
38 views

How to create alphabetic sections in TableView with header from MutableArray using swift 3

I'm trying to add sections to my table but I can't manage to get my fist letter from my MutableArray (my database that contain 60 values) into a dictionary. I want to create alphabetic sections with ...
0
votes
2answers
61 views

Array Filter In swift

I want to add on response on another array whose quantity greater than zero. Can it is possible without iterating my array. Is their any function because my array has lot of value. Please help any ...
0
votes
2answers
44 views

Swift Adding objects from on array to another array correctly?

So I have 2 NSMutableArrays, one called testArray and the other called jsonArray. jsonArray gets its objects from a mysql server using json and php. Then those same objects in jsonArray are inserted ...
0
votes
1answer
44 views

Swift JSONSerialization.jsonObject Error

I've looked around but I don't find an answer to fix this error that has been bugging me. I tried adding a "as! NSMutableArray" but that gave me another error. Any ideas on how to fix it? I converted ...
0
votes
0answers
10 views

Non-ARC Project: NSMutableArray, NSString Memory Leak

Our company team works on an existing application. That project is non-ARC (automatic reference counting). There is doubt occurs about release the object following code. Code 1: Why is there no crash ...
-1
votes
3answers
52 views

How to get count of elements that do have string value one

How to get the count of elements present in array that contains only string @"one". NSMutableArray *array = [[NSMutableArray alloc]initWithObject:@"one",@"one",@"two",@"one",@"five",@"one",nil]; How ...
2
votes
4answers
108 views

Sorting a Firebase NSMutableArray Numerically

Im trying to sort through my Firebase Data by putting the User with the highest combat power at the top and the lowest at the bottom. However, I've never used NSSortDescriptor before and it's not ...
0
votes
3answers
109 views

Error when moving objects between NSMutableArray

In my iOS app, I have a table view and it has 2 sections/ 2 arrays. I am trying to move an object from one array/section to another array/section. Now Section 0 is called followedArray and Section 1 ...
0
votes
2answers
56 views

Can not add object inside a block

I am running a block to fetch all users connect with a Quickblox account.But after adding user's login name to the mutable array, the count of the array is still showing zero or an empty array. ...
-1
votes
1answer
69 views

After switching to Swift3 I have: Type NSFastEnumerationIterator.Element (aka Any) has no subscript members

this is actually a follow up to this question: how can I convert NSArray into specific String? Bryan's answer worked for me in previous version of Swift, but now when I moved to Swift 3, this code: ...
1
vote
0answers
41 views

Adding Favorite Rows of UITableView to NSMutableArray

I am programing an iOS app which is almost completed, I've added a Favorite Button to UITableView, it works pretty well, on press it changes its image. Here is my code - (UITableViewCell *)...
-1
votes
1answer
39 views

Objects not getting added to the NSMutable Array [duplicate]

Student.h #import <Foundation/Foundation.h> @interface Student : NSObject @property NSInteger age; @property NSString *name; @end Student.m #import "Student.h" @implementation Student @end ...
0
votes
1answer
42 views

How can I create MKTileOverlay dynamically according to specific URLs from an NSMutableArray

I have an NSDictionnary inside an NSMutableArray (dateArrayURL) It looks like this : dateArrayURL: ( { date = "2016-10-04 13:00:00 +0000"; urlImage = "http://www.xxx/XX/XX.jpg"; }, { ...
0
votes
2answers
32 views

iOS Get all NSArray into one

I've NSArray with NSArray in. I would like to get all NSArray into one. I think there is a simple function to use, isn't it ? Here is what I receive : ( ( n0eGi1KJWq, ...
0
votes
2answers
43 views

Finding index of NSMutableDictionary inside an NSMutableArray

I have an NSMutableDictionary with a specific key and value. This dictionary is inside an NSMutableArray. I want to update the dictionary with a specific key which is at a certain index inside the ...
0
votes
1answer
25 views

Array Index in Descending Order

I am developing an camera app ,and showing the taken photos in thumbnail view with the numbers .i am displaying the numbers from array index value in ascending order.Like this.In this image numbers ...
0
votes
0answers
18 views

Why a float number has quotes? [duplicate]

I'm adding a float number to an NSMutableArray in Objective-c, and when I add this and then print my array, if the number has decimal is showed into quotes like "5.5", if the number hasn't decimals is ...
0
votes
1answer
32 views

Is possible combine values of objects joinning and adding up into NSMutableArray?

I have an NSMutableArray with 4 objects, and I want join the objects that were created the same day, adding up his values like in the example. I'm trying use collections operator in Objective-c, but ...
0
votes
1answer
41 views

How to sum all values in NSMutableDictionary with the same key?

I have a NSMutableDictionary in my objective c class with different pair keys values. ({Name=John; date=20070506; type=5; value= 125;}, {Name=Tracy; date=20040506; type=2; value = 237; }, {Name=...
0
votes
1answer
225 views

Swift 3 - How to append NSMutableArray objects to another NSMutableArray

I wan to append objects from a NSMutablArray to another NSMutableArray on Swift 3 but I can't achieve that. This is what I tried to do first: mutableArray.addObjects(from: anotherMutableArray) And ...
0
votes
0answers
62 views

NSMutableArray addObject Isn't Working

I am trying to create a NSMutableArray which will become the dataSource for a UIPickerView, but nothing is getting added to the array, the console just shows (. What am I doing wrong? NSMutableArray ...
-1
votes
1answer
36 views

How to find key in a NSDictionary object array ios

I have a NSMutableArraylike this. [ { "Employee": { "EmployeeCode": 17125, "DisplayName": "MI0000026 - ABC", "DisplayName2": "ABC2", "Initials": "W. S. S.", "Surname": "CCC", "...
0
votes
0answers
51 views

NSMutableArray addobject refrence count +2? [duplicate]

After add a object to NSMutableArray got reference count +2 ? E2post *post = [E2post new]; [postsObjectArray addObject:post] NSLog(@"RC post = %ld",CFGetRetainCount((__bridge CFTypeRef)(...
0
votes
1answer
19 views

iOS:Objective-C property call from another thread is empty

I have singleton where several classes and Threads are updating an NSMutableArray. But when access the NSMutableArray to see the content of the NSMutableArray is empty. This is part of my code: @...
0
votes
3answers
58 views

NSMutableArray of UIViews

In this small app, i simply want to make a questionnaire that displays each question on a UIView. Since the questionnaire may change in size depending on my needs, i would like to make the code very ...
0
votes
1answer
12 views

Array Mutation whilst being Enumerated

so my issue is happening only when I have two enemies on a team in my game. If it's a one versus one.. I do not get the issue. Please look at my code and see if you can gather as to why I'm getting ...
0
votes
3answers
54 views

How to create NSMutableArray using NSPredicate from the NSMutableArray/NSMutableDictionary

I have NSMutable array which contains certain fields in its index as a key and value pair like this Result = ( { FName = @"Achal"; MName = @"Pradip"; LName = @"...
-2
votes
2answers
24 views

How To Set The Array Index Value

I want to set the array index value starting from 1, because I am showing the array index value I don't want to how the index value as Zero. I Don't know how to set the array index value from Zero. ...
-2
votes
1answer
24 views

How to get the Array Index Value and showing them in label in collection view

i taking photos and showing them in scrolling part in collection view.i want to show the numbers like if that collection view has one image , i want to show 1.if there are 3 three images then i need ...
0
votes
2answers
38 views

Get dictionary from NSMutableArray of dictionary

I'm trying to get a NSMutableDictionary from a NSMutableArray. I set my array this way: let test : NSMutableDictionary = NSMutableDictionary() test.setValue("Monday", forKey: "day") test....
0
votes
0answers
35 views

Swift how to pass NSMutableArray to uipickerview

I have a query in soap service, which returns me a DataSource, that DataSource has two columns per row, how can I bring those columns within the UIPickerView using swift 2.3 in this image show the ...
0
votes
4answers
89 views

Swift Filter Nested Array

I have a NSMutableArray which it self has many arrays inside it. Inside each array at all index they further had custom objects of class given bellow. Class User:NSObject{ var name = "" var ...
-1
votes
1answer
29 views

store NSobject data into Nsuserdefaults

In My Modal Object two values are there I'm trying to store in NSUserDefaults. This is My Code interface File: @interface collectionModel : NSObject <NSCoding> { } @property(nonatomic,retain) ...
0
votes
1answer
45 views

Why duplicates when adding dictionary to array

I'm new to Swift and experimenting. Trying to create a simple array of dictionary values. This is crude, but I simply replicated a short piece of code four times for the dictionary objects, changed ...
1
vote
1answer
170 views

Issue facing in isKindOfClass in iOS10

Recently I have upgraded XCode8 I am facing issue in isKindOfClass method this code is working till to iOS9 but in iOS10 suddenly [items isKindOfClass: [NSMutableArray class]] compiler not going in ...
0
votes
1answer
21 views

CFArrayRef class use iskindofclass

In Following Code I check array with isKindOfClass, But When I check with if it will true for both condition : NSString *values[] = {@"hello", @"world"}; CFArrayRef arrayRef = CFArrayCreate(...
0
votes
3answers
51 views

Safely perform changes to NSMutableArray

What can cause an assignment or change to an NSMutableArray to crash? I have a mutable array containing custom objects, and I consistently keep no more than the 3 latest objects in it, the rest are ...
-2
votes
1answer
34 views

In objective-C, how to traverse indexes (keys) and objects in NSMutableArray?

Is it possible to traverse NSMutableArray in the same way as associative array can be traversed, ie. getting the "id" and "item" in the each loop pass? I have a NSMutableArray, and I want to use it as ...
0
votes
1answer
54 views

Filling an NSMutableArray with int values and then retriveing them [duplicate]

I'm integrating the BEMSimpleLineGraph library into my Objective-C iPhone app, and I'm having trouble adding int values from my Core Data to an NSMutableArray, and later retrieving the values in the ...