accessing a file using [NSBundle mainBundle] pathForResource: ofType:inDirectory:

前端 未结 10 1423
清酒与你
清酒与你 2020-12-02 07:56

I have a file paylines.txt added inside the folder named TextFiles which resides inside the Resources folder of my iOS project in Xcod

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 08:39

    Select Project / Specific Folder --> Right Click --> Add Files to Project -- > Select the File you want to add.

    This worked for me.

提交回复
热议问题