Tag:autolayout

  • Summary of using AutoLayout in IOS

    Time:2020-12-16

    preface AutoLayout is very powerful and easy to use, and has strong readability. With various third-party AutoLayout libraries, you can make a layout like a dog out of a chain! But there are also a variety of problems in the use, the following will give you a detailed introduction. AutoLayout problem Layout conflict Inherent size […]

  • How to use auto layout (1) – initial experience

    Time:2019-12-10

    This series of articles will introduce auto layout from the perspective of a novice who is slowly exploring, and tell me how I feel about it bit by bit in my two-month study. The ultimate goal is to let everyone use it on their own after reading, and complete most simple layout conventions. The code […]

  • How to use auto layout (2) — to achieve three equal parts

    Time:2019-12-9

    The code warehouse of this series of articles is located at https://github.com/johnlui/autolayout. If you don’t understand, you can refer to my auto layout settings. Just download it and open it locally. Get ready In the previous article, we have had the initial experience of auto layout together. In this article, we will try to use […]

  • How to use auto layout (3) – customize cell and use auto layout

    Time:2019-12-8

    The code warehouse of this series of articles is located at https://github.com/johnlui/autolayout. If you don’t understand, you can refer to my auto layout settings. Just download it and open it locally. brief introduction In this article, we will try to customize a uitableviewcell and constrain it with auto layout. Custom cell foundation In the previous […]

  • Experience of auto layout (4) — 22 lines of code to realize drag rebound

    Time:2019-12-7

    The code warehouse of this series of articles is located at https://github.com/johnlui/autolayout. If you don’t understand, you can refer to my auto layout settings. Just download it and open it locally. brief introduction In this article, we will use uipangestrurerecognizer and auto layout together to achieve drag rebound effect through 22 lines of code. Build […]

  • Storyboard tips: use scale layout

    Time:2019-11-29

    StoryboardIt’s perfect for multi screen adaptation! But there are some techniques that can easily be ignored, and the use of scale to control layout that I’m going to introduce today may be one of them. In the actual project development process, some layouts are determined according to the scale. At this time, you can use […]

  • Constraint Priority of AutoLayout Advanced Constraints in iOS StroyBoard

    Time:2019-9-7

    At first, when I was working, I used SB interface development for a period of time. Later, I changed the team to pure code layout. Now for some modules of visual layout development, so summarize the original constraints of the use of methods, learn from the past. Constraint Priority As shown above, constraints 1 and […]

  • IOS realizes paging and rolling function with AutoLayout

    Time:2019-7-26

    Scroll View Paging The pagingEnabled property of UIScrollView is used to control whether to scroll by page. This feature will be applied in some applications, and the most typical one is the list of application icons on the mobile desktop. In these interfaces, each page function is relatively independent, and the system also provides UIPageViewController […]