in Education by
I am facing a problem that makes me to waste a lot of time. Each time I insert an element on a View Controller (e.g UITextField, UIButton, etc) and I have set the constraints for the rest of elements on the View Controller I have to delete all the constraints and add new ones because the new element brokes the structure of the screen position of the elements (it modifies all the constraints also). I spend a lot of time each time I have to change something on a screen of my Swift application because each time I modify something I have to add all the constraints again. Is there a way in which I can insert an element ignoring the rest of elements and then position this new element according to one or more of the elements on the screen? Or something to do that the constraints will ignore the new element until I have set it correctly? Or some similar workaround? P.S: According to the comments, as it seems that my question is not very clear, I am going to add some additional info: I am trying to insert the new element when I am designing the application. I am using the Main.storyboard file to insert the new elements. I drag the elements into the View Controller. I am using XCode. Thanks in advance! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You can still let Xcode create constraints for you, it works fine most of the time. Just select in the menu: Editor > Resolve AutoLayout Issues > Reset to suggested constraints After doing this you still can change a few of the constraints to fit your needs. In general, you drop all of your views in your controller and set constraints only at the end. As @Anand K mentioned, Stack views are a great way to layout your app plus it's strongly encouraged by Apple.

Related questions

0 votes
    I am facing a problem that makes me to waste a lot of time. Each time I insert an element on a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 10, 2022 in Education by JackTerrance
0 votes
    I have a table of items with a checkmark disclosure button, and I want to create a second table ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    I have to download images to my iOS apps local file system and read them back. On my simulator I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 6, 2022 in Education by JackTerrance
0 votes
    I am trying to upload image by converting image to base64 format. And i am getting below error. Error ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I am trying to get a thumbnail image from a video from a URL using AVFoundation but I am getting ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    I replaced the Google Analytics SDK with the Firebase SDK. I'm looking to generate some of the previously- ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
0 votes
    in Obj-C it was possible to iterate through alphabet with: for (char x='A'; x...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    i am new to iphone app development.i am trying to connect facebook using the facebook api's using iphone ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I have a single view in my application which does not receive any events from iOS. I tried to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
    I've managed to read some values into a table view and display them in the Master View of a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    The functional dependency can be tested easily on the materialized view, using the constraints ____________. ... for Decomposition in portion Normalization of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    We are using In memory data store possibly Hazecast or Redis (technology is undecided yet) Predominantly the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    Annotation used for Rest Controller? 1. @SpringBootApplication 2. @RestController 3. @Controller 4. All of the Above...
asked Jul 8, 2021 in Technology by JackTerrance
0 votes
    If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse inorder ... Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
...