English 中文(简体)
创建可滚动的菜单,同时使用年限,代表每一种可能的选择。 这些电离层必须能够通过电离网向电离层na。
原标题:Create a scrollable menu with UIImages representing each possible selection. These UIImages must be able to snap to the grid one by one

I m试图制造一个菜单(使用UIScrollView),用户可以选择图像(使用UIImageView)。

我打算在任何时候至少看到3个图像。 当我浏览时,这些图像将能够跳出。

然而,如果我使用一个能够随时展示3个图像的超时电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层,那么,如果我能使用一个足够大的电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层,那么每3个图像的电离层,只有下3个图像。

And if I am to use UIScrollView that fits just 1 image, and I enable clipsToBounds (which helps me draw the images beyond the boundary of the UIScrollView). My figure gestures can only be detected within UIScrollView itself, I want my figure gestures to be detected as long as any of the images are touched.

Thanks.

最佳回答

You can use following method of UIScrollView to scroll it from code as much as you want.

- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated

you can call this from following method of UIScrowViewDelegate. - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView

Thus, you can manage how much you scroll view will call.

并且为了了解情况,实施一个展示图像的单独类别(从UIImageView或IDView中提取),并实施插图。 在您的习俗观点中触及到某些家长观点,并以适当的论据告知他们(青年可以分配主人财产,通过他们来发展,找到确切的主人形象)。

......。 我确信,如果你需要任何进一步援助,我就不是解决你的问题。

问题回答

我写了一门“国际观点”的习俗,它超越了“国际观点”的“禁试”方法。

In the header of the custom UIView class, declare a UIScrollView, later you will need to assign the UIScrollView which is displaying the menu to this variable.

UIScrollView *thatScrollView;

在执行过程中,记住综合不同和超标的禁试

@synthesize thatScrollView;

- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
    if ([self pointInside:point withEvent:event]) {
        return thatScrollView;
    }
    return nil;
}

然后,在《国际会计学报》课堂上,树立了班级的榜样,并指派了你希望开课的简历:

hiddenView.underneathButton = scrollView1;




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签