Hi,
I have to append the strings. One is of c-type and the other is of NSObject type.
How to append these two strings.I tried to append two NSStrings and I got the output.
I'm getting an EXC_BAD_ACCESS when tried to execute the above code.
How to make the char as an NSObject type.
Code:
char string1[512] = "Hello";
NSString* string = @"World!";
NSString* string2 = (NSString*)string1;
string2 = [string stringByAppendingString:string2];
NSLog(@"string:%@",string2);
I have to append the strings. One is of c-type and the other is of NSObject type.
How to append these two strings.I tried to append two NSStrings and I got the output.
I'm getting an EXC_BAD_ACCESS when tried to execute the above code.
How to make the char as an NSObject type.