[micro tasks] translation from swift code to objective c
$10-30 USD
Igangværende
Slået op over 8 år siden
$10-30 USD
Betales ved levering
the swift codes is below. you should translated this :
func checkAuthorizationStatus () {
switch [login to view URL]() {
case .Restricted, .Denied:
//Device does not allowed
[login to view URL] = "Restricted/denied"
let alert = UIAlertView(title: "Location Service Setting", message: "The access to location services on this app is restricted/denied. Go to Settings > Privacy > Location Services to change the setting on your phone.", delegate: self, cancelButtonTitle: "OK" )
alertnumber = 2
[login to view URL]()
case .NotDetermined:
[login to view URL] = "Restart the app"
//Asking permission
if([login to view URL]().[login to view URL](advance([login to view URL]().[login to view URL],1)).toInt() >= 8){
//iOS8 and later: call a function to request authorization
[login to view URL]()
}else{
[login to view URL]([login to view URL])
}
let alert = UIAlertView(title: "Location Service", message: "Checking the availability of Location Service on the app.", delegate: self, cancelButtonTitle: "OK" )
alertnumber = 3
[login to view URL]()
case .AuthorizedAlways, .AuthorizedWhenInUse:
//Start monitoring
println("Monitoring")
[login to view URL] = "Playing " + toString(beaconID["version"]!)
for i=0;i<27;i++ { [login to view URL][i].volume = 0 }
//[login to view URL][0].volume = 1
[login to view URL][0].playFileAsync("[login to view URL]", target: self, selector: "PTDidStartPlay")
//SoundFileLoader()
[login to view URL]([login to view URL])
default:
//unknown error
println("Unknown Error")
[login to view URL] = "Unknown Error"
}
}
the [login to view URL] is the class we are trying to use the snip above.
the WebViewController we have, and on this class, we should call this method on this web view.
this class is need to call beacons listener on this web view.
whole project desc:s
[login to view URL]
target devices: smartphones . iOS and android.
lang for iOS : native app. code is objective c + swift. ( not js base code gen like phongap or cordoba or those )
langu for android : / Android java.
but we use web views:
the part you do is native iOS part.