所以我有一个UIScrollView
多重UIImageViews
我必须生成我自己的滚动视图类才能利用它touchesEnded
-(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
行?
提前致谢