だから私は
それを利用するためにスクロールビューの独自のクラスを生成しなければならなかったUIScrollView 複数のものを持っていますUIImageViewstouchesEnded
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
// [super touchesEnded:touches withEvent:event];
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self];
if ((int)(point.x / 100) < [[self items] count] ) {
NSLog(@" ENDED D File Selected is %@ %d " , [[self items] objectAtIndex:(int)(point.x / 100) ] , (int)(point.x / 100) );
}
// [[self nextResponder] touchesEnded:touches withEvent:event];
}
items は、NSMutableArray 各サブビューが指すファイルの名前を格納するため、基本的に subview[0] === item[0] など...
subview[0]は画像ビューでitem[0]、 はfileNameその画像の です
私の質問はこれです ファイル xyz が選択されたことを元の発信者に通知するにはどうすればよいですか? ラインとは対照的にNSLog?
前もって感謝します