0

有点奇怪的问题,所以我附上了屏幕录像以帮助...

视频:https ://www.dropbox.com/s/3aaefixsk8eejln/Error.mov (查看过去的水印!)

我的问题是,在我的应用程序中,当用户处于“预览”视图并正在查看他们的图像时,每次选择图像时,图像都会收到触摸覆盖,这可能会让用户感到困惑,因为触摸时没有任何反应。

如果可能的话,我想禁用它..

下面是如何显示图像的示例代码..

 - (void)setReviewImages
{
    continueButtonDisabled = YES;
    downloadedImageCount = 0;

    NSArray *reviewViews = scrollView.subviews;
    for (IMReviewView *reviewView in reviewViews) {
        [reviewView removeFromSuperview];
    }

    NSUInteger photoCount = [[IMLocalUser localUser] cachedPhotoCount];
    if ( nPageNum == 0 ){
        for (NSUInteger i = 0; i < photoCount; i++) {

            CGRect frame;
            frame.origin.x  = scrollView.frame.size.width * i;
            frame.origin.y  = 65;
            frame.size      = CGSizeMake(scrollView.frame.size.width, 327.0f);

            IMReviewView *subview = [[IMReviewView alloc] initWithFrame:frame];
            subview.delegate = self;
            subview.photo = [[IMLocalUser localUser] cachedPhotoAtIndex:i];
            [scrollView addSubview:subview];

            scrollView.showsHorizontalScrollIndicator = NO;
            scrollView.contentSize = CGSizeMake(scrollView.frame.size.width * i, scrollView.frame.size.height);

            UILabel *headingLabel = [[UILabel alloc] initWithFrame:CGRectMake(12, 20, 300, 30)];
            [self.view addSubview:headingLabel];


            headingLabel.text = @"Time To Preview!";
            headingLabel.textColor = [UIColor blackColor];
            headingLabel.textAlignment = UITextAlignmentCenter;

            headingLabel.textAlignment = NSTextAlignmentCenter;
            headingLabel.tag = 10;
            headingLabel.backgroundColor = [UIColor clearColor];
            headingLabel.font = [UIFont boldSystemFontOfSize:26.0f];
            headingLabel.hidden = NO;
            headingLabel.highlighted = YES;
            headingLabel.highlightedTextColor = [UIColor blackColor];
            headingLabel.lineBreakMode = YES;
            headingLabel.numberOfLines = 0;
        }
4

1 回答 1

0

在我看来,它似乎IMReviewView有一个UIButton子视图。如果是这样,请尝试将其adjustsImageWhenHighlighted属性设置为NO.

于 2013-06-15T21:52:15.700 回答