[NSString stringWithFormat:@"%@ %i",oldStr,integer]
[NSString appendStringWithFormat:@"%i",integer]
#import "test.h"
@implementation test
- (IBAction)testAction:(id)sender
{
int myInt = 30;
testString = [[NSMutableString alloc] init];
//testString = @"This is a \n test of strings";
[testString appendString:@"This is a \n test of strings"];
[testString appendString:@"\n more text"];
[NSMutableString appendStringWithFormat:@"%i",myInt];
[textField setString:testString];
[testString release];
}
@end
#import "test.h"
@implementation test
- (IBAction)testAction:(id)sender
{
int myInt = 30;
testString = [[NSMutableString alloc] init];
//testString = @"This is a \n test of strings";
[testString appendString:@"This is a \n test of strings"];
[testString appendString:@"\n more text"];
[testString stringByAppendingFormat:@"%i",myInt];
[textField setString:testString];
[testString release];
}
@end