資源已添加到項(xiàng)目中了,但NSString *newDataName = [[NSBundle mainBundle] pathForResource:@"" ofType:@""]; 返回為空
后來從網(wǎng)上查到相關(guān)信息,當(dāng)時(shí)添加是直接拖拽過去郑叠,沒有真正加入到bundle中星岗,需要在項(xiàng)目設(shè)置中叶撒,build phases-》copy bundle resources 下面添加自己的數(shù)據(jù)就可以了卑惜。
記錄一下蜀变。