![]() ![]() I have an amazing article about mastering Auto Layout anchors, I highly recommend reading it if you want to get familiar with anchors. Of course you can use the magical interface builder, but where's the fun if you just drag lines?Ĭreating constraints programmatically is no better than calculating frames, it will lead you to the same level of complexity or even worse, this is why so many 3rd party frameworks came alive and eventually Apple issued the problem as well. Creating all your constraints sucks, at least it's going to cost many many lines of code. So as you can see we definitely have a problem with constraints. class ViewController: UIViewController God forbid the engineer who invented this black magic. If your application is going to support multiple device orientations, you should implement the following methods inside your view controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |