float:left in objective-c

后端 未结 3 2065
执念已碎
执念已碎 2021-02-14 18:54

I\'m trying to make a bunch of buttons behave somewhat like float:left in CSS. So whenever the view changes size, on orientation change for example, the buttons should adjust so

3条回答
  •  眼角桃花
    2021-02-14 19:27

    I have implemented a layout system to do things like this. There is a demo project on how to use it checked into that repository. I'd be happy to answer any questions about it. This is much more lightweight than AQGridView, so if you don't need the extra functionality he is providing, I would recommend an approach similar to mine.

提交回复
热议问题