Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. class DataViewController: UIViewController {
  2.  
  3. @IBOutlet weak var dataLabel: UILabel!
  4.  
  5. var dataObject: String = ""
  6.  
  7. override func viewDidLoad() {
  8. super.viewDidLoad()
  9. view.accessibilityIdentifier = "Onboarding View"
  10. }
  11.  
  12. override func viewWillAppear(_ animated: Bool) {
  13. super.viewWillAppear(animated)
  14. self.dataLabel.accessibilityIdentifier = "Month Label"
  15. self.dataLabel.accessibilityValue = dataObject
  16. self.dataLabel!.text = dataObject
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement