I want to format the string by this way
NSString *title ;
- (void)uploadString:(NSString *)string
{
title =glbl.text;
NSMutableString *strRR = [[NSMutableString alloc] initWithString:title];
[strRR appendFormat:@"%@ .html"];
[self.googledocs beginUploadData:dataHtml withTitle:title inFolder:self.adirPath replaceExisting:NO];
}
glbl is the label which holds some values like genesis1.3 and I want to format this string with .html that is genesis1.3.html. stRR is holding the valuegenesis1.3and I want to appendstRRwith.html`. How to do this? I got some error in the above code.
Thanks in advance.
1 Answer