0
如何添加下面的字符串到newscount對象添加一個字符串到的NSArray
NSString *path = [[NSBundle mainBundle] pathForResource:@"NewsStory1" ofType:@"txt"];
NSString *content = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
newscount = [[NSArray alloc] initWithObjects:[NSString *content],@"XXX", @"12345", nil];
這是關於一個UITextView?代碼示例中沒有UITextView。 – progrmr