Find Jobs
Hire Freelancers

[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.
Projekt-ID: 8358569

Om projektet

Projekt på afstand
Aktiv 9 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs

Om klienten

Flag for JAPAN
Minato-ku, Japan
4,9
10
Medlem siden aug. 27, 2015

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.