I am having trouble removing objects from nsmutable array. Here it is.
NSURL *url = [NSURL URLWithString:@"http://www.lockerz.com/dailies"]];
NSData *datadata = [NSData dataWithContentsOfURL:url];
NSString *removeForArray = [[NSString alloc] initWithData:datadata encoding:NSASCIIStringEncoding];
NSArray *theArray = [removeForArray componentsSeparatedByString:@" "];
NSMutableArray *deArray = [[NSMutableArray array] initWithArray:theArray];
[deArray removeObjectsInRange:NSMakeRange(0, 40)];
NSLog(@"%@", deArray);
+[NSMutableArray array]already returns an initialized array. Don’t use an initializer method on that, they are used on new instances that youallocd.In this case you can either
alloc/initan instance-mutableCopyThe three following lines are equivalent: