Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func getUpdateStatus(){
- var ref: DatabaseReference!
- ref = Database.database().reference()
- ref.child("checkeriOS").child("updateRequired").observeSingleEvent(of: .value, with: { (snapshot) in
- var requiresUpdate = snapshot.value as? Int
- print(requiresUpdate)
- }) { (error) in
- print("Error connecting to database")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment