1 Reply
      Latest reply: Oct 7, 2016 3:24 AM by eskimo RSS
      ShinehahGnolaum Level 1 Level 1 (0 points)

        Is it possible to hold references to button controls in a dictionary?

        • Re: controls reference dictionary
          eskimo Apple Staff Apple Staff (5,995 points)

          Yes.

          let b1: UIButton = …
          let b2: UIButton = …
          let b3: UIButton = …
          let d = ["a": b1, "b": b2, "c": b3]
          

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"