开发者

iPhone - adding new group to class folder - import not detecting

开发者 https://www.devze.com 2023-01-19 16:33 出处:网络
I hope you can help with that. OK i have created new group/folder under Classes - Libs: Classes/Libs and have created class there Msg.h

I hope you can help with that.

OK i have created new group/folder under Classes - Libs: Classes/Libs and have created class there Msg.h

now I am trying to import it into my RootViewController

#import "Libs/Msg.h"

but I am getting an error:

Lib开发者_C百科s/Msg.h = no such file or directory    

what should i Do ?

cheers, /marcin


OK, as it turns out, the Libs is not required just

#import "Msg.h"        

is enaugh even if its in folder level down.

thanks


What path is your RootViewController in? If you give a path in import, it must be relative to the current file. Also check the case of both directory and file; Mac OS X is case-insensitive, but Xcode and iPhone are not.

0

精彩评论

暂无评论...
验证码 换一张
取 消