objective c - iphone timer plist file display -
i'm going ask question again,i thought had figured out guess not. timer app gets timer info plist file. works want .plist extension not show in tableview. here 2 code snippets believe issue. these in array called nsarray *files;
self.files = [[nsbundle mainbundle] pathsforresourcesoftype:@"plist" indirectory:@"timers1"]; // configure cell. cell.textlabel.text = [[files objectatindex:indexpath.row] lastpathcomponent]; return cell;
thanks help
nsstring *text = [[files objectatindex:indexpath.row] lastpathcomponent]; text = [text substringtoindex:[text rangeofstring:@"."].location]; cell.textlabel.text = text;
Comments
Post a Comment