Apple introduced Native JavaScript bridge for iOS in iOS 7. you can call objective-c apis in javascript.[1]<p>[1]<a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;mac&#x2F;documentation&#x2F;AppleApplications&#x2F;Conceptual&#x2F;SafariJSProgTopics&#x2F;Tasks&#x2F;ObjCFromJavaScript.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;mac&#x2F;documentation&#x2F;AppleA...</a>