IPhone: get absolute app path

Is there a way to programmatically get the absolute path to the executable. While executing this executable, I mean :) Something like reading / proc / pid / * in linux for the current PID

Thanks!

+1


a source to share


2 answers


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

[[NSBundle mainBundle] executablePath];

      



should get what you need.

+8


a source


You can get closer to NSHomeDirectory .



0


a source







All Articles