Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. var marks = [UIButton : [Double]]()
  2. var doubles = [Double]()
  3. var access = [UIButton]()
  4.  
  5. @IBAction func Store(_ sender: Any) {
  6. var button : UIButton
  7. button = UIButton(type: .system) as UIButton
  8. button.frame = CGRect(x:5, y: 20, width: 100.0, height: 30)
  9. self.view.addSubview(button)
  10. buttons.append(button)
  11. marks[button] = doubles
  12. // let defaults = UserDefaults.standard
  13. // defaults.set(marks, forKey: "marks")
  14.  
  15.  
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement