SHARE
TWEET

Untitled

a guest Jul 19th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func scaleMeter() {
  2.         let numberPicker = NumberPicker(delegate: self, maxNumber: 100)
  3.         numberPicker.tintColor = .white
  4.         numberPicker.heading = “Select Scale”
  5.  
  6.         let ageCount = UserDefaults.value(forKey: defaultsKeys.age)
  7.         guard countValue != nil else {
  8.             numberPicker.defaultSelectedNumber = 0
  9.             self.tabBarController?.present(numberPicker, animated: true,  completion: nil)
  10.             return
  11.         }
  12.  
  13.         numberPicker.defaultSelectedNumber = Int(ageCount as! String)!
  14.         self.tabBarController?.present(numberPicker, animated: true,  completion: nil)
  15.  
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top