Permalink
Browse files

add Resource Path

  • Loading branch information...
1 parent ef429db commit f39563e0b4173dce1b345a2bafacf47271148b4d @siuying siuying committed May 10, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/kernel.rb
View
@@ -29,6 +29,12 @@ def rear_camera?
def documents_path
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0]
end
+
+ # Returns the application resource path where resource located
+ # @return [String] the application main bundle resource path
+ def resources_path
+ NSBundle.mainBundle.resourcePath
+ end
def app_delegate
UIApplication.sharedApplication.delegate

0 comments on commit f39563e

Please sign in to comment.