[英]iPhone: get application absolute path
Is there any way to programmatically get absolute path of executable. 有什么办法以编程方式获取可执行文件的绝对路径。 During execution of this executable, i mean :) Something as reading /proc/pid/* in linux for current PID
在执行此可执行文件的过程中,我的意思是:)类似于在Linux中为当前PID读取/ proc / pid / *
Thank you! 谢谢!
I have no idea why you'd want to do this, but: 我不知道您为什么要这样做,但是:
[[NSBundle mainBundle] executablePath];
should get you what you're after. 应该给你你想要的。
您可能会接近NSHomeDirectory 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.