¡@

Home 

2014/10/15 ¤U¤È 10:11:06

iphone Programming Glossary: listdata

how to add object to NSMutableArray

http://stackoverflow.com/questions/3480473/how-to-add-object-to-nsmutablearray

read an input file if it exists and then want to add a string to that input. My code looks as follows. NSMutableArray listData NSMutableArray alloc initWithContentsOfFile filepath listData null if the input file does not exist. NSString jobName NSString.. to that input. My code looks as follows. NSMutableArray listData NSMutableArray alloc initWithContentsOfFile filepath listData null if the input file does not exist. NSString jobName NSString stringWithFormat @ My New Job listData addObject jobName.. filepath listData null if the input file does not exist. NSString jobName NSString stringWithFormat @ My New Job listData addObject jobName if the input exists then after addObject jobName the listData is updated but if the input file does not..