0
У меня есть Scrollview создан, используя следующий код:Получить теги изображений в Scrollview
NSUInteger i;
for (i = 1; i <= kNumImages; i++)
{
imageName = [NSString stringWithFormat:image, i];
UIImage *image = [UIImage imageNamed:imageName];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
CGRect rect = imageView.frame;
rect.size.height = kScrollObjHeight;
rect.size.width = kScrollObjWidth;
imageView.frame = rect;
imageView.tag = i; // tag our images for later use when we place them in serial fashion
[bigScrollView addSubview:imageView];
}
Как я могу получить тег изображения в настоящее время в представлении?
спасибо. Но как я могу получить тег * текущего * subview, отображаемого в представлении? – benbeel