iOS中的图像网格 [英] Grid of images in iOS
问题描述
我想在TabBarController中创建一个TabItem,其中包含用户可以选择的图像网格。我知道我可以使用一个TableViewController,但这只会显示一个长列表,而不是行(例如)3x4图像。
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 long list, rather than rows of (for example) 3x4 images.
这是可能吗? >
Is this possible?
推荐答案
我最终选择了 CocoaControls 称为 DTGridView ,但它只是第二个 GMGridView ,这是第二个。我发现GMGridView太太强大了。
I eventually went with an excellent control from CocoaControls called DTGridView, but it was a close second to GMGridView, which was a close second. I found GMGridView a tad too powerful.
我发现使用DTGridView相对容易做的事情之一是重写 - (void)drawRect
使用CoreGraphics的堆叠堆栈效果。
One of the things I found relatively easy to do with DTGridView was to override -(void)drawRect
to add a stacked stack effect using CoreGraphics.
这篇关于iOS中的图像网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!