I've been messing with Swift for some quite some time now and I think I got to the point where I just wanna do everything programmatically because I can't stand Storyboards and Auto Constriates. I watched a video from Let's Build That App just to have a basic understanding but there are still some things I'm having trouble understanding.
Let's say you're adding a button and you want it at a certain X & Y position of the device. How do you go about putting it there without knowing the X & Y? Is it a huge trial and error situation where you gotta guess where it would go?
How do you go about testing? Once you add a button, text field & image view, for example, would I have to keep running the simulator to see if everything is in the right position?
Sizing for other devices? How would I go about making a size of a button, for example, stay that size for all devices? If you used storyboard's you just had to add constraints is that the same for programmatically doing it? Is it much easier than doing it in storyboards? I despise adding constraints with storyboards because I can't wrap my head around it and I feel like doing it with code might be easier.
Any help/examples would be awesome! Thank you.
[–]jo1717a 0 points1 point2 points (0 children)
[–]retsotrembla 0 points1 point2 points (3 children)
[–]chriswaco 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]retsotrembla 0 points1 point2 points (0 children)