Guest User

Untitled

a guest
Dec 5th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. var pickerData = ["2x2","4x4","6x6","8x8","12x12","12.5x12.5","13x13","13.5x13.5","14x14","14.5x14.5","15x15","15.5x15.5","16x16","16.5x16.5","17x17","17.5x17.5","18x18","18.5x18.5","19x19","19.5x19.5","20x20","20.5x20.5","21x21","21.5x21.5","22x22","22.5x22.5","24x24","24.5x24.5","32x32","24x48"]
  2.  
  3.  
  4. override func viewDidLoad() {
  5. super.viewDidLoad()
  6.  
  7. totalTilesLabel.text = pickerData[8]
  8.  
  9.  
  10. display.text = sentData
  11. self.picker.delegate = self
  12. self.picker.dataSource = self
  13.  
  14.  
  15. }
  16.  
  17. func numberOfComponentsInPickerView(pickerView: UIPickerView) -> Int {
  18. return 1
  19. }
  20.  
  21. func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
  22. return pickerData.count
  23. }
  24.  
  25. func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
  26. return pickerData[row]
  27. }
  28.  
  29. func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
  30.  
  31. }
Add Comment
Please, Sign In to add comment