NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch.
0
votes
0answers
8 views
Check UIImageView array frame equality with NSTimer
I am wondering how to check if all the frames of two UIImageView NSMutableArrays are equal to each other. Now I am using a NSTimer for that.
Here is the code which I use in the method:
__block BOOL ...
0
votes
1answer
36 views
UItableview , create dynamically section with rows
i have one UITableView view with even and odd row
i want create the section for 2 rows one even and one odd
how can i do
I use NSMutableArray ;
items = [[NSMutableArray alloc] init];
- ...
0
votes
1answer
35 views
How to make my UIPickerView display all elements of an array
I have a UIPickerView and an array though I can't seem to be able to input all the date from the array into the UIPicker.
I know that the syntax is meant to be like this:
- (NSString ...
0
votes
0answers
36 views
Two mutable arrays getting mixed
I am making a table object which by a swipe gesture changes the displayed values to completely different ones. This works because there is a UIPageControl which shows which set must be displayed on ...
-5
votes
1answer
20 views
Accessing Coordinates in Plist - iOS [on hold]
Instead of accessing specific latitude with hardcoded as shown in below
NSString *path = [[NSBundle mainBundle] pathForResource:
@"WellList" ofType:@"plist"];
NSMutableDictionary ...
-1
votes
4answers
88 views
Trying to initialize array objective -c
So I know my problem is that my transfer array is not being initialized correctly. Where should I put transfer = [[NSMutableArray alloc] init];?
@interface PictureViewController (){
Poi ...
0
votes
2answers
39 views
How do I store this object in my iOS class?
I am creating my first Master-Detail application for iOS.
I want to store the following
Name
Web URL
In my UITableView, I plan on displaying only the name (sorted) but when the name is tapped, ...
0
votes
8answers
102 views
Check if NSDictionary is empty
I want to check if an NSDictionary is empty. I am doing it like this.
mutDictValues = [[[NSUserDefaults standardUserDefaults] objectForKey:@"dicValues"]mutableCopy];
NSLog(@"dictValues are ...
0
votes
3answers
45 views
NSArray error: initializer element is not constant
I declared this array in my view controller implementation file:
NSMutableArray *images = [NSMutableArray array];
I wanted an empty, mutable array that I would later add UIImageViews to. It always ...
0
votes
2answers
32 views
Convert NSMutableArray to a NSSet with the same order
How can i do that programatically?
I am told that this is the way to do it but the nsset has a different order.
NSSet *set = [NSSet setWithArray:theArray];
Any idea?
Thanks in advance.
0
votes
2answers
37 views
NSMutableArray does not return value and assign to variable
I have an NSMutableArray in my code and I want to access the last element of that array and save the element in integer n variable. But n does not give me the correct value when I NSLog it, it gives ...
0
votes
3answers
43 views
NSMutableArray always converting to NSArray
I have an NSMutableArray that did its initialisation like follows:
@interface Countries ()
{
NSMutableArray *arrayofCountry;
}
@end
- (void)viewDidLoad
{
//...
...
0
votes
0answers
5 views
Showing images from an NSMutableArray of image path to a custom cell
I have an NSMutableArray object which storing the path of few images, and I NSLog the object, it contains
NSMutableArray *imageArray
(
"http://localhost/demo/1.jpg",
...
0
votes
1answer
47 views
c++ mutable array of various data types?
I decided one day to create a class in c++ with storage capabilities similar to that of NSMutableArray in objective c (I know vectors are the goto data type for this sort of thing but I made my own ...
-2
votes
3answers
47 views
JSON to NSMutableArray with AFNetworking [duplicate]
I have a webpage with the code in JSON:
[
{"url":"event.com","name":"Event name","event":"Event"},
{"url":"event.com","name":"Event name 2","event":"Event"},
...