I want to put a button that will take the user to our website, but do it in safari. Is this possible in iOS?
[code]Declare Function NSClassFromString Lib “Foundation” (className As CFStringRef) As Ptr
Declare Function sharedApplication Lib “Foundation” Selector “sharedApplication” _
(UIApplicationClass As Ptr) As Ptr
Declare Function URLWithString Lib “UIKit” Selector “URLWithString:” _
(NSURLClass As Ptr, url As CFStringRef) As Ptr
Declare Function openURL Lib “UIKit” Selector “openURL:” (UIApplication As Ptr, NSURL As Ptr) As Boolean
Dim UIApplicationPtr As Ptr = sharedApplication(NSClassFromString(“UIApplication”))
Dim NSURLPtr As Ptr = URLWithString(NSClassFromString(“NSURL”), “http://www.google.com”)
If openURL(UIApplicationPtr, NSURLPtr) Then
// Success
Else
// Error
End[/code]
Open the example IOS Declare Project called “ShowURL”
Use that
Thanks