Top "Nsarray" questions

An immutable, integer-indexed array of objects from the Apple Foundation framework.

How to group by the elements of an array in Swift

Let's say that I have this code: class Stat { var statEvents : [StatEvents] = [] } struct StatEvents { var name: String var date: String …

ios arrays swift nsarray
Convert an iOS objective c object to a JSON string

I have an objective C class like, @interface message : NSObject { NSString *from; NSString *date; NSString *msg; } I have an NSMutableArray …

ios json serialization nsarray
Convert NSArray to NSDictionary

How can I convert an NSArray to an NSDictionary, using an int field of the array's objects as key for …

iphone objective-c nsarray nsdictionary
How to return an NSMutableArray from an NSSet

I'm able to put the contents of an NSSet into an NSMutableArray like this: NSMutableArray *array = [set allObjects]; The compiler …

objective-c cocoa-touch nsmutablearray nsarray nsset
Serialize and Deserialize Objective-C objects into JSON

I need to serialize and deserialize objective-c objects into JSON to store in CouchDB. Do people have any example code …

objective-c json couchdb nsarray nsdictionary
How to count occurrences of an element in a Swift array?

I've seen a few examples of this but all of those seem to rely on knowing which element you want …

ios arrays swift nsarray
Search NSArray for value matching value

I have an NSArray of objects, which has a particular property called name (type NSString). I have a second NSArray …

iphone objective-c ipad nsarray
Comma-separated string to NSArray in Objective-C

So I have no experience with arrays... But I need to use one to populate a UIPickerView. I am obtaining …

objective-c arrays nsarray csv
Unrecognized Selector Sent to Instance [NSCFString subarrayWithRange:]

I have the following code which is producing this error. I cannot understand why the subarrayWithRange message is being sent …

objective-c ios4 nsarray unrecognized-selector
Got a EXC_CORPSE_NOTIFY symbol crash, how to track it?

Here's the whole crash log. What's the meaning of EXC_CORPSE_NOTIFY exception notice? I have to replace some strings …

ios objective-c crash nsarray