RSS

UIGestureRecognizer Class Link

19 Oct

http://iphonedevwiki.net/index.php/UIGestureRecognizer

 

 

 

one function for handle tap in scrollview

 

– (void)handleTapFrom:(UITapGestureRecognizer *)recognizer

{

CGPoint offset = [recognizer locationInView:self.scrollView];

CGFloat hora = (offset.y – VERTICAL_OFFSET)/VERTICAL_DIFF;

NSInteger intHour = (int)hora;

 

NSLog(@”Current time is %@ %@ %@”,appDelegate.strCalSelectedDate,[self.arrayTimes objectAtIndex:intHour],[self.arraySuffix objectAtIndex:intHour]);

}

Advertisements
 
Leave a comment

Posted by on October 19, 2011 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: