vendredi 2 mars 2018

Execute a script only once in swift

On my application developed in swift, I would like to be able to execute a script once, it is a request GeoFire and I would like that it makes its request once then stops. I tried conditions and loops

if ([name of the varialble] <= 1)
{
// Execute the query,
}
else if ([name of the variable > 1)
{
// Otherwise stop the query
}

But that never works. Thank you for your help

Aucun commentaire:

Enregistrer un commentaire