Tagged Questions
2
votes
1answer
23 views
is retaining a static array makes a leak on non-arc project?
I got a test code below.
(By this example I faced that an interface cannot be statically allocated without retain.)
By this codeblock I understood what really retain is.
I wantto be sure if this ...
-5
votes
2answers
53 views
Compare NSArray with NSDictionary
I have one NSArray with objects {3, 5, 6} and a NSDictionary with {3, 5} i want to compare those and delete the "6" because its missing from the NSDictionary i'm using the following code
[lists ...
0
votes
1answer
30 views
Getting and array of values from an array of CustomObject [duplicate]
I have the following issue, I need to get an array of values from an array of custom Objects. Is there a method for doing this without iterating the principal array, let me graphic it a little bit.
...
-6
votes
1answer
34 views
How to get index of array element in cell?
I have array which a pushed to tableView, when i tap a row(cell) a need to get number of my array element in these row, how can a do these?
- (void)rightButtonClick:(MyTableView *)tableView ...
2
votes
4answers
64 views
How to filter array with objects by using predicate?
I have NSArray *listArray with objects like - (id, name).
I would like sort array by (name) -
NSString *alphabet = [agencyIndex objectAtIndex:indexPath.section];
//---get all states ...
2
votes
3answers
45 views
Turn NSArray of CGPoints into a block of NSData
I am trying to turn a NSArray of CGPoints to NSData. I can't figure out how to do it.
According to ...
-1
votes
1answer
101 views
NSMutableArray Resetting Itself?
I am having an issue with NSMutableArray wiping its contents.
Consider my code: (int i; is in my file's .h as is NSMutableArray* newFileControllerArray)
-(void)awakeFromNib{
i = 0;
...
1
vote
2answers
50 views
No visible @interface for 'NSArray' declares the selector 'exchangeObjectAtIndex:withObjectAtIndex
I am trying to shuffle an array, but I get a "No visible @interface for 'NSArray' declares the selector 'exchangeObjectAtIndex:withObjectAtIndex:' on the last statement.
How should bArray be ...
4
votes
2answers
70 views
Objective-C implementation of Ruby “chunk”
I have an Objective-C application where I'm trying to sort an NSArray while grouping the array elements that have equal sort values. Ideally, I would generate a new array of sets, where each set in ...
1
vote
1answer
34 views
Searching an Array using NSPredicate method predicateWithFormat
Currently trying to setup a search would search an Array (bakeryProductArray) which looks like this
"Tea Loaf",
Tiramusu,
"Treacle Loaf",
Trifle,
"Triple Chocolate Brownie",
...
2
votes
1answer
32 views
Core Data made easy with using of Arrays
browsing in some core data pages online i found a tutorial that use an interesting technique, i never seen nor used it before, but actually looks pretty smart.
Instead of working with long methods, ...
-2
votes
2answers
48 views
iOS : Copy selected row from Table to an Array: [on hold]
Alright, I'm at a wall. I'm trying to copy the SELECTED ROW from a Table View and add the contents to an ARRAY.
I tried this, but to no avail:
[self.templist addObject:[self.songsList ...
0
votes
1answer
51 views
NSArray and new plugin signature with Phonegap 2.9
I'm working with a Phonegap 2.9.0 project with Xcode 4.6,
I'm in trouble with a ExternalFileUtil plugin.
It's all installed, but it doesn't work.
As these post says, I have recoded the plugin with ...
-3
votes
4answers
76 views
How to remove elements of NSDictionary
I have NSArray of NSDictionaries I need to extract 2 values or remove the values I don't need from the dictionary in the example below I need to remove id and NumberValue. any of you knows how can I ...
0
votes
3answers
51 views
Can't store all data from NSArray into NSMutableDictionary? [closed]
What's the problem with this code?? I am trying to put the data from an NSArray to a NSMutableDictionary but I do not want to first split the initial nsarray into two and then send the data to the ...