hi, i really can't find a solutions for this 
what I'm want to do is, read a text from a rich text file and show it in a TextView.
When reading a txt file I'm using this code and its ok:
for reading rtf, i read references and i try to use this code but it won't work:
it seems i can't use the initWithPath method.
is there any solution to read rtf basically?
please help..
what I'm want to do is, read a text from a rich text file and show it in a TextView.
When reading a txt file I'm using this code and its ok:
Code:
NSString *hayat = [[NSBundle mainBundle] pathForResource:@"textbaslik" ofType:@"txt"];
textview2.text = [NSString stringWithContentsOfFile:hayat encoding:NSUTF8StringEncoding error:nil];
for reading rtf, i read references and i try to use this code but it won't work:
Code:
NSString *hayat = [[NSBundle mainBundle] pathForResource:@"textbaslik" ofType:@"rtf"];
NSMutableAttributedString *mstring = [[NSMutableAttributedString alloc] initWithPath: path documentAttributes: NULL];
it seems i can't use the initWithPath method.
is there any solution to read rtf basically?
please help..
Last edited by a moderator: