3 Replies
      Latest reply on Sep 30, 2016 2:59 AM by eskimo
      Ceonn Level 1 Level 1 (0 points)

        Hello, Wondering if "addConstraintsWithFormat" is depreciated in Swift 3? Getting the following error: Use of unresolved identifier 'addConstraintsWithFormat', when writing this code: addConstraintsWithFormat("V:|[v0]|", views: nameLabel).

        • Re: Add constraint error
          Claude31 Level 8 Level 8 (8,435 points)

          Think you got an answer to the question in this forum


          https: //  forums.developer.apple.com/thread/53416

            • Re: Add constraint error
              Ceonn Level 1 Level 1 (0 points)

              This is relevant, but in that case I had to work around this whole method. To be more precise, I am looking for the correct way of writing it.

                • Re: Add constraint error
                  eskimo Apple Staff Apple Staff (13,335 points)

                  I can’t find addConstraintsWithFormat inside either the iOS or macOS SDKs.  Where did it come from?

                  It’s bit hard to recommend a replacement when we don’t know what the routine does )-:

                  Share and Enjoy

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