3 Replies
      Latest reply: Sep 30, 2016 2:59 AM by eskimo RSS
      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 5 Level 5 (1,060 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 (6,665 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"