I want to store an object in an NSMutableDictionary with a string key, so I have made the declaration like this:
I have a dictionary whose keys are NSStrings and whose objects are NSArray. Here\'s an example: key (NSString) : GroupA
I have two strings: @\"--U开发者_开发知识库\" and @\"-O-\" and would like to create another NSMutableString that makes @\"-OU\" using the two givens. Does anyone know how I can do this?Note, the foll
i now this is a silly question, but i still have some poor understanding about this case. It i开发者_如何学Cs about memory management and reference count, i have some doubt about how many reference co
I currently have the following code: -(void) inputNumber:(int)number { NSString *str; str = [NSString stringWithFormat:@\"%d\", number];
I\'m not sure if this is an error or not. The code compiles fine (no warnings), but when I enter a method, a local\'s value (an NSMutableString) displays this content in the debugger:
I am new to programming in XCode, and as a first familiarisation exercise, I would like to make a small Calculator app. So obviously I came upon a few problems:
I am looking for an efficient way to replace URLs in an NSString (or NSMutableString) with the replacement word \'link\', for example ...
So, I\'m fairly certain that if I plan on manipulating strings often, such as with stringByAppendingString, I should be using variables of type NSMutableString.
I am getting an error \'Attempt to mutate immutable object with appendString:\' and my code is NSMutableString *resultString= [[NSMutableString alloc]init];