HI i was following this example to create a slider gallery
"http://lievendekeyser.net/index.php?module=messagebox&action=m开发者_如何学Cessage&msg_id=1351"
But i stuck at one point. what i am trying to do is, when user double tap on current image, it should navigate to another view, like to view B.
But i am not able to navigate and detect double tap on current image.
suggestions needed. regards
you can find the number of tap in touch event. and when count of tap == 2 then you should write code for further movements.
else put all these images in UIButton and provide the IBActions to all the buttons and perform the action. use following code
[ScrollViewFavButton addTarget:self action:@selector(FavClickButton:) forControlEvents:UIControlEventTouchUpInside]; ScrollViewFavButton.tag = i; [ScrlViewFavorite insertSubview:ScrollViewFavButton atIndex:i];
insert button in the scrollview and perform action in FacClickButton:.
I think now you'll get your answer.
精彩评论