-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an NSMutableArray that is populated with objects of strings. For simplicity sake we'll say that the objects are a person and each person object contains information about that person.
Thus I would have an NSMutableArray that is populated with person objects:
person.firstName
person.lastName
person…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What i'm trying to accomplish is to have an NSMutableArray defined in the AppDelegate. I then have two UIViewControllers. One view is responsible for displaying the array from the AppDelegate. The other view is used to add items to the array. So the array starts out to be empty. View1 doesn't display…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I currently build an NSMutableArray in Class A.m within the ViewDidLoad Method.
- (void)viewDidLoad
{
[super viewDidLoad];
//Question Array Setup and Alloc
stratToolsDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:countButton,@"count",camerButton,@"camera",videoButton,@"video"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Can anyone help point out memory leaks? I'm getting a bunch within this method and I'm not sure exactly how to fix it.
- (NSMutableArray *)getTop5AndOtherKeysAndValuesFromDictionary:(NSMutableDictionary *)dict {
NSLog(@"get top 5");
int sumOfAllValues = 0;
NSMutableArray *arr = [[[NSMutableArray…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been stuck on this for days and each time I come back to it I keep making my code more and more confusing to myself, lol. Here's what I'm trying to do. I have table list of charges, I tap on one and brings up a model view with charge details. Now when the model is presented a object is created…
>>> More