Top "Nsarray" questions

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

NSMutableArray from NSArray

i have the following code and i want to use NSMutable arrays instead of NSArray could you tell me how …

ios objective-c nsmutablearray nsarray
Sort NSArray with sortedArrayUsingComparator

In Objective-C I can sort an NSArray using this statement: NSArray *sortedArray = [persons sortedArrayUsingComparator:^NSComparisonResult(Person *p1, Person *p2) { return […

sorting swift nsarray
Filter Array with dictionaries using NSPredicate

There is an Array with each element being a NSDictionary. NSMutableArray *mutArr = [NSMutableArray array]; for (Person *person in persons) { NSDictionary *…

iphone ios nsarray nspredicate
Exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]'

I haver already looked for the other similar post, but none has solved my problem. I get this error: *** Terminating …

ios nsarray parse-platform searchbar nsexception
How to compare two NSArrays for equal content?

I have 2 Nsarray where objects of 2 arrays are same may be indexes of the object differs, but it should print …

objective-c ios nsmutablearray nsarray equals
What's the difference between a dictionary and an array?

What is the difference between a dictionary and an array, especially when working with PLIST files? What are the advantages …

objective-c ios nsarray plist nsdictionary
What is __NSArrayI and __NSArrayM? How to convert to NSArray?

What is __NSArrayI and __NSArrayM? __NSArrayI(or M) cause "unrecognized selector" error. How to convert to NSArray? I did test …

iphone objective-c ios nsarray nsobject
Concatenation of two arrays in Objective-C

How to concatenate two arrays into a single array in Objective-C?

objective-c nsarray
How do I get a list of countries in Swift ios?

I've already seen two similar questions to mine, but the answers for those questions do not work for me. I …

cocoa-touch swift nsarray uipickerview nslocale
Objective-C For-In Loop Get Index

Consider the following statement: for (NSString *string in anArray) { NSLog(@"%@", string); } How can I get the index of string in …

ios objective-c for-loop nsarray