uikit - How would you implement an scrollable grid in your iPhone app? -
I have about 50 images of each 50 x 50 pixel size. I want the user to choose one of them Will happen. So first I thought of a UITableView, but it's just not the right thing to erase a lot of screen space, instead of putting all the images below each other, it would be better to show a grid of 6 columns and N rows.
I will use a UIScrollView and fill it with the UIView object which I automatically arrange so that they look like a grid. Is this the way? Or any other suggestions?
I am doing a lot in my app - image below with an NXN grid, and " Line "to attract another subview on top, all of which are owned by UIScrollView. I recommend keeping a different view for attracting images:
- (zero) draw (cgccact racket) {CGTT shortcut = CGRectack (X, Y, width, height); [Drag your image: smallpoints]; // repeat necessary to attract the grid} Another poster has mentioned that if your view is owned by UIScrollView you will not be able to get touch events - this is only true I do not have to do this work You may need to set the following:
[yourScrollView setUserInteractionEnabled: Yes] [yourGridViewSetUserInteractionEnabled: Yes]
Comments
Post a Comment