Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var marks = [UIButton : [Double]]()
- var doubles = [Double]()
- var access = [UIButton]()
- @IBAction func Store(_ sender: Any) {
- var button : UIButton
- button = UIButton(type: .system) as UIButton
- button.frame = CGRect(x:5, y: 20, width: 100.0, height: 30)
- self.view.addSubview(button)
- buttons.append(button)
- marks[button] = doubles
- // let defaults = UserDefaults.standard
- // defaults.set(marks, forKey: "marks")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement