uitouch

Touch Duration in UITableviewCell

Hi all, Is there a way to get the touch duration of a UITableViewCell without subclassing? The reason being I want to display a modal view controller when the user holds a cell and display a detail view when the user taps a cell. I already have a working app using default UITableViewCells (but recently found a need for the hold event) w...

Detect specific object with UITouch

HI . i am trying to move an UIImageView object with UITouch and have problem with the code how can i implement UITouch to detect only my UIImageView object ? **imageA it my UIImageView -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *toucheA = [[event allTouches] anyObject]; if ([toucheA view] ...

How to show a PDF page by page using horizontal swipe in iphone ?

Hi, I want to create a page by page PDF reader. I know how UIWebView can be used to show the PDF but It will load the entire PDF and want to show one page at a time. The PDF is stored locally. Next and previous PDF Pages should be loaded depending on the horizontal swipe. How to show a single page along with horizontal Swipe and Zoo...

Setting a UIImageView with swipes

I currently use a left and right arrow to switch between images, but would like to add functionality so that the user can swipe in the direction to change the image. How does the device detect a left swipe or right swipe and use that as an IBAction or similar to the button triggering execution? Is there a build in method or does it ne...

rotate uiview using touch (ipad and iphone)

Hi guys.. I am trying to design another app and am struggling to think of the best way to do it. I'm after some advice please! If you imaging a bicycle wheel in the middle of the ipad (and iPhone)... I want the user to be able to click on the tyre and spin it to the left or right. Depending on the speed of the swish will drive the speed...

Rotate the image corresponding to the touch drag in iphone

Hi i want to rotate the image in clockwise or anticlockwise corresponding to the user touch drag with its speed. i think this can be do with some math logics. any one give me the little bit code sample for this. thanks in advance ...

slide inside a button - touchdraginside

Hi all! I got an touchdraginside-action which is connected in IB with a button. -(IBAction)slide { } How can i check the start touch point in my button and how long the finger slides in this button? Can anybody help me, please? With this code a can check the touch in my view... But i dont know how this works with a button? -(void)...

iPhone: Is there a way of keeping track of touches while changing views with UINavigationController ?

I'm currently working with 2 views on a UINavigationController. I have a Leaves view (Tom Brow's leaves project) to simulate curling effect for pages which only works with images, and my actual view controller with the page and it's contents. What I'm trying to do is, when tapped on certain place, popViewControllerAnimated:NO the actua...

How to Zoom In/Out Photo on double Tap in the iPhone WWDC 2010 - 104 PhotoScroller

Hi All, I am going through the Sample code of iPhone WWDC 2010 - 104 PhotoScroller App. It's working great with my project related images (PDF Page Images) but I am struggling detect touches in the PhotoScroller App. The Zooming using multiple touches is handled by the ScrollVoiew. Now I want to Zoom In/out the photo on double Tap. The...

Detecting hold on a object - iPhone Objective C

Hi all, How can I detect if a user holds their finger down on an onscreen object for 1 second ? Thanks, Martin ...