Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add Resource Path

  • Loading branch information...
commit f39563e0b4173dce1b345a2bafacf47271148b4d 1 parent ef429db
@siuying siuying authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/kernel.rb
View
6 lib/kernel.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.