Tutorial :iPhone: get application absolute path



Question:

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

Thank you!


Solution:1

I have no idea why you'd want to do this, but:

[[NSBundle mainBundle] executablePath];  

should get you what you're after.


Solution:2

You might get close with NSHomeDirectory.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »