2010-05-28 69 views

回答

7
NSLog(@"%@" , [[NSBundle mainBundle] bundlePath]); 
+1

謝謝,但如何找到這個在蘋果文件? – TheLearner 2010-05-28 16:26:37

+1

閱讀+ mainBundle(http://bit.ly/cydGZx)和-bundlePath(http://bit.ly/94Fefe)。 – 2010-05-28 16:36:16

+0

** Swift **:'print(NSBundle.mainBundle()。bundlePath)' – SwiftArchitect 2016-02-11 13:48:22