nsmutablestring
String as key in a mapping
I want to store an object in an NSMutableDictionary with a string key, so I have made the declaration like this:[详细]
2023-03-11 08:47 分类:问答What's the best way to generate this string? (NSMutableString...)
I have a dictionary whose keys are NSStrings and whose objects are NSArray. Here\'s an example: key (NSString) : GroupA[详细]
2023-03-09 22:17 分类:问答creating NSMutableString from two other NSMutableStrings
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[详细]
2023-02-28 06:55 分类:问答how many reference count increase
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[详细]
2023-02-28 03:37 分类:问答NSMutableString help Objective C
I currently have the following code: -(void) inputNumber:(int)number { NSString *str; str = [NSString stringWithFormat:@\"%d\", number];[详细]
2023-02-22 03:39 分类:问答"__NSAutoreleaseFreedObject(): release of previously deallocated object" out of the blue
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:[详细]
2023-02-18 00:53 分类:问答setString NSMutableString
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:[详细]
2023-02-17 07:56 分类:问答iPhone Objective C - How to remove URLs from an NSString
I am looking for an efficient way to replace URLs in an NSString (or NSMutableString) with the replacement word \'link\', for example ...[详细]
2023-02-15 17:26 分类:问答NSString vs NSMutableString with stringByAppendingString
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.[详细]
2023-02-15 08:26 分类:问答error : 'Attempt to mutate immutable object with appendString:' --
I am getting an error \'Attempt to mutate immutable object with appendString:\' and my code is NSMutableString *resultString= [[NSMutableString alloc]init];[详细]
2023-02-15 07:35 分类:问答