Grid of images in iOS

前端 未结 2 432
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 00:46

I want to create a TabItem in a TabBarController containing a grid of images which a user can select. I know I could use a TableViewController, but that would just show a lo

2条回答
  •  醉梦人生
    2020-12-29 01:14

    Apple has sample code TiledScrollView.m that demonstrates how to do what you want to do. The guts of the tile reuse is in layoutSubviews. Obviously you will need to tweak it to your own tasks... but it's always nice to have some working code to start with ;-) Hope this helps.

提交回复
热议问题