0
votes
0answers
10 views

Objective C: how to convert nested NSDictionarys and NSArrays to URLEncoded string

I have a Symfony2 project serving both a JQuery Web client and an Objective C iPhone APP. JQuery sends properly its urlencoded data to the server. Data that is properly accessed in the Symfony2 ...
0
votes
2answers
41 views

Why does my NSArray have zero objects?

I'm trying to add some UIImage objects to an array, but it's not working. I tried adding the images to an NSArray and for some reason, the array isn't holding anything? Here is my code: UIImage *a = ...
0
votes
1answer
21 views

How to sort array of strings in which string contains numbers in it [duplicate]

I would like to sort an array of custom objects based on the name(NSString) variable. The name variable can have numbers in the end. Unsorted data: Tank 1, Tank 2, Tank 10, Tank 32, Tank 3, Tank 11 ...
-1
votes
1answer
38 views

Error handling when array is empty

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { [self getLoadingTableCellWithTableView:tableView]; RssItemCell *cell = [tableView ...
0
votes
2answers
43 views

Add items from NSSet to UITableView (convert NSSet to multiple arrays?)

I have a UITableView that adds information from a Core Data the following way: The "Category" for various names is added at the header The names that correspond to the Category should be loaded in ...
0
votes
1answer
31 views

Obtain array objects with specific value

What I want to do is to return the NSArray objects of a specific value (numbers). How can I do it? Thanks in Advance
-2
votes
2answers
50 views

How do l call this method -(int)match:(NSArray *)otherCards;

How to l call this method from a different class because l have tried and its failing see code #import <Foundation/Foundation.h> @interface Card : NSObject @property (strong, nonatomic) ...
1
vote
4answers
124 views

Flatten an NSArray

I have an array like this: array: ( ( "http://aaa/product/8_1371121323.png", "http://aaa/product/14_1371123271.png" ), ( ...
1
vote
2answers
34 views

Search String in NSDictionary store in NSMutableArray

I am trying to search a String in NSDictionary stored in NSMutableArray for (int k = 0; k < [onlyActiveArr count]; k++) { NSString *localID = [onlyActiveArr objectAtIndex:k]; ...
-2
votes
5answers
29 views

index set beyond bounds with objectsAtIndexes [closed]

I don't understand what is going on. As you can see I have an array of 107 objects. When I try to copy only 10 objects from it to another array I get this error. (If I input numbers like 3,8 it will ...
0
votes
2answers
41 views

How to retrive the array value into different array?

In my application , i have used the Json.This is my JSON response in my application This is my Response: [ { "response": "Success", "errorMsg": "", "userId": "1", "userCompany": ...
-1
votes
1answer
32 views

NSArray/NSDictionary: case insensitive element lookup? [duplicate]

Is there a way to use indexOfObject: of NSArray or objectForKey: of NSDictionary without case sensitive? So if I have an array: @[@"Apple", @"Banana", @"Peach"] Then [array ...
0
votes
1answer
57 views

What is the Objective-C equivalent of Array.lastIndexOf(element, fromIndex) [duplicate]

I come from a JavaScript/ActionScript background and am used to doing indexOf and lastIndexOf on strings and arrays. For NSStrings, both of these were relatively simple: // equivalent of JavaScript's ...
-1
votes
1answer
54 views

Why is an exception being called when I set the text of a label to a object in an array?

I have a label that I want to set its text as an object from and array peopleQuestionArray. I have generated an random int with values ranging from 1-4. My array currently has 4 objects in it. I ...
0
votes
3answers
63 views

Best way to find object in Array

I have array with arrays ex.: ( ( object, object ), ( object, object, object, object ) ) Each objecthas property .objectID.What is the best way to find object with specific objectID?

1 2 3 4 5 105
15 30 50 per page