parsing txt from array to UILabel
问题 I'm actually starting to loose the will to live, this piece of code is driving me nuts! I'm trying to get the content of mathspractice.txt into *myLabel I'm using an array which is: -(void)loadText { NSArray *wordListArray = [[NSArray alloc] initWithArray: [[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@”mathspractice” ofType:@”txt”] encoding:NSMacOSRomanStringEncoding error:NULL] componentsSeparatedByString:@”\n”]]; self.theMathsPractice = wordListArray;