Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
36 views

Defining the type of a completionHandler in Objective-C

I can't manage to get the responseCompletion type correct, at the for cycle. Tried to replace it with typedef, but got no luck, only more errors. @interface ImageManager : NSObject //typedef void(^...
bruno's user avatar
  • 2,180
1 vote
1 answer
91 views

How to read an Objective-C array in Swift? It's always returning nil

I have a NSArray declared in .h file as @interface ClassName : NSObject { NSArray *myArray; } @property (nonatomic, strong) NSArray *myArray; @end In the .m file here is how I have it. @...
vedhanish's user avatar
  • 251
0 votes
0 answers
81 views

Accessing string and int values from JASON data

Parsing a JSON file saved locally,storing JSON data in NSArray and further NSArray storing in id type to print values in table view but getting crash in getting int value like "id" also what ...
user3432634's user avatar
0 votes
0 answers
21 views

I am trying to pull the value based on the key in a NSArray in Objective-C that are passed in a URL. How do I get the value form the key? [duplicate]

I am pulling in the components from a NSURL using componentswithurl: resolvingagainstbaseurl:. This gives me an NSArray of query items, but I cannot get the value for each object out of the array ...
D. Rock's user avatar
0 votes
0 answers
45 views

Iteract through __NSSingleObjectArrayI in Objective-C

I'm getting the below response and how do I iterate or get the values? <__NSSingleObjectArrayI 0x600002edeea0>( { link = "<null>"; ValueG = "%"; ValueT = 1; ...
Microcad's user avatar
0 votes
1 answer
108 views

Xamarin iOS - Why Can't I Iterate or Fetch by Index on an NSArray?

I am trying to either iterate over an NSArray in Xamarin, or fetch items by index as follows : try { NSData value = (NSData)NSUserDefaults.StandardUserDefaults["accounts"]; ...
GuybrushThreepwood's user avatar
2 votes
3 answers
395 views

Rust Cocoa - How to Iterate NSArray

From brandonhamilton/image-capture-core-rs's ICCameraDevice.mediaFiles() I can get the NSArray::count() (from core-foundation-rs) : let cam_media_files = camera_device.mediaFiles(); println!( ...
Mikeumus's user avatar
  • 3,840
0 votes
1 answer
147 views

NSSet with string property from array of objects

I have an array of somethings, I'd like to make a set from an NSString property on this object: @protocol something<NSObject> @property(nonatomic, readonly) NSString *Id; @end I have an array ...
Rik's user avatar
  • 1,947
1 vote
1 answer
64 views

how can the whole NSMutableArray be filled with the same object(NSString)

I'm trying this, but it looks like it's not right, are there any options? Thank you NSMutableArray *copyy = [[NSMutableArray alloc] initWithCapacity:8]; for (int i = 1; i < copyy.count; i++) { ...
juicexxx's user avatar
0 votes
1 answer
31 views

Do NSArray and NSMutableArray classes take up the same size in memory?

I'll have to work with millions of representations stored as indexes in multiple NSArray objects or NSMutableArray objects. Which one of these classes takes up the least memory?
Vulkan's user avatar
  • 1,044
0 votes
1 answer
131 views

How to pair strings together from NSArray? [duplicate]

I have a NSArray that looks like this: NSArray *array = {@"1.100.2", @"23465343", @"1.100.1", @"46535334", @"1.0.03", @"24353454" ...}; I ...
CokePokes's user avatar
  • 991
0 votes
0 answers
97 views

NSPredicate - Show exact match first

I have a following array NSArray *arr = [NSArray arrayWithObjects: @"Suresh", @"Dr. Akshay Phulare", @"Akshay", ...
Akshay Phulare's user avatar
0 votes
0 answers
24 views

Insert unique item to NSArray

I've implemented a simple code that used to insert unique items to NSArray object. Meaning that If the item already exists, it won't be added again to avoid duplications BOOL identicalItemNotFound = ...
Zohar81's user avatar
  • 4,984
0 votes
1 answer
77 views

Sorting NSArray and NSMutableArray in Objective-C

I have an NSArray containing 6x 3D arrays with image pixel data, and an NSMutableArray with 6 values. I would like to sort the NSMutableArray array numerically and sort the NSArray in the same order ...
user3470496's user avatar
0 votes
1 answer
61 views

How to check my nsarray contains another nsarray element or not in fastest way IOS

I have seen many of the answers but didn't get my answer. So that's why I decide to post a question. If anybody can find the helpful link or answer will be helpful. Here is my array of dictionary: <...
Mihir Oza's user avatar
  • 2,776

15 30 50 per page
1
2 3 4 5
221