touch

UIWebView Touches

I'm trying to catch when a user stops interacting with a UIWebView. I've added this code to my UIWebView, but it never seems to get called. - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"Touches ended"); } ...

How to touch a file with JScript?

Is there a way to touch a file (i.e. change its modification time) from a JScript? There is a DateLastModified property in FileSystemObject (ActiveXObject), but it's read-only. Couldn't even find a clear "no, you can't" on this... ...

Dragging a particularly large sprite up and down like scroll effect in COCOS2D

I am really stuck on this. My application is in landscape view and on one screen i wanted my instructions image to be scrollable. I have added this image as a sprite. First i tried to get scroll effect available from other sites, but soon i saw that scrolling was being done for the complete screen and not the sprite image. Then i resorte...

Which object, or view, did I touch?

Working in a ViewController that has a few views which were added to it as subviews and I have a touchesBegan method: UIImageView *testImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test.png"]]; testImage.frame = CGRectMake(0, 0, 480, 280); [self.view addSubview:testImage]; - (void)touchesBegan:(NSSet *)to...

[iphone] get touch coordinates (in the form of 0-480 and 0-320)

i dont get how to translate the coordinates of the iphone. if i make a single touch i get the coordinate. if i make a touch and keep it and release it it shows the difference of the starting and end point. how do i get the absolute position of the touch? thanks! -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ...

Tooltips in the era of touch

Tooltips are an incredibly useful interface paradigm to know an application. They are the mapping between the visual control and the application specific action associated to that control. the user can explore the action without invoking it just by hovering the mouse pointer. The touch devices make this paradigm basically impossible. th...

how to get touch event on imageView of UITableViewCell ?

Hi, I want to get notifications when user single tap or double tap on imageView of UITableViewCell. I have been try to add a subview to imageView, and use touchesBegan:withEvent: in subview controller, but can't trigger the event I expected. How can I do the job ? ...

Handling touch events on UI Controls using Objective C (iPhone Development)

Hi, I am new to iPhone programming (Objective C language). I need some help. I am working on event handling on the controls like UITextField, UISlider, UISwitch etc.. How can I fire touch events on these controls (touchesBegan, touchesEnded, touchesMoved, touches Cancelled). I found that the touch events do not fire directly on these c...

Android Softkeyboard OnTouchListener

Hey Guys This time my question is rather short: Is it possible to add to the Softkeyboard an OnTouchListener? Like u can do it for an ordinary EditText field. Or is there any other way to implement an OnTouchListener above the Softkeyboard? Thanks in advance Ripei ...

Has anyone compared iPhone MySQL clients

I am looking for the best MySQL client for my iPhone. I see several like Flipper and iMy and several others, but before I invest a bunch of time and a little money trying them out, I would like to just start with the best most feature rich one. I would link to the others but don't have permission yet. ...

touchesMoved behavior in iPhone and Simulator

The function touchesMoved behaves differently in iPhone and simulator. The repeating interval (refresh rate) of the function touchesMoved is much faster than simulator. Is there a way to deal with the difference? ...

Android WebView touch event link

Hey, I have a webview with a banner and when I click on the banner there should open a second webview that follows the link. How can I do that? I have created the first WebView and it shows my banner but when I click on it, it opens the link in the same WebView. How can I catch any events in the WebView when I click on a link that it s...

box2d: bigger clickable/touchable area

I'm using Box2D on my iPhone app using Cocos2D. I'm using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries. I would want to extend the area of Box2D bodies. In this way, I can touch approximately my body and still respond. Does it exist any way to do this? Thanks...

Polygon touches in more than one point with shapely

Hi I have a list of shapely polygons in Python. To find out which polygon touch is easy, using the .touches() method. However, I need something that returns true only when the polygons share more than one point (in other words shares a border). Let me illustrate: IPython 0.10 -- An enhanced Interactive Python. In [1]: from shapely.geo...

Android "hover" event in custom layout

I have a custom layout that I have written that basically just displays a bunch of ImageViews. I am handing onTouch events for all the ImageViews in my layout. However, if a user touches one imageView and then drags over another ImageView, I would like to be able to handle that as well. How would I go about capturing this behavior? ...

How to know TabletPC is in 'Laptop' or 'Tablet' mode

I'm writing a Touch-enable application for DELL TX2, for text input, I need to know whether the TablePC is in 'Laptop' or 'Tablet' mode, then change the text input mode. In 'Latop' mode, don't call virtual keyboard, vice versa. But I didn't find any useful information from MS website and google. Is there any Windows API? Thanks in advanc...

UIImage detecting touch and dragging

Fairly common question this, to which I have a few answers and I'm nearly there. I have a button which when pressed, will create an image (code as follows) (numImages is set on load to ZERO and is used as a count up for the tag numbers of all images created) UIImage *tmpImage = [[UIImage imageNamed:[NSString stringWithFormat:@"%i.png",...

Best guide to learn to develop iphone & touch apps

Hi! I already know some Objective-C and Cocoa and I like to develop apps for the iPhone since I'm a massive iPhone user :) What's the best guide you have find yet? Or book.. Thanks a lot! ...

Rotate a UIImageView with a touch gesture - iphone dev

Hi all, Been having real trouble with this one and wondered if someone may have found a solution to this issue. I would like to be able to rotate a UIImageView using a touch gesture -> So when the user places two fingers on the touch area and rotates their fingers the UIImageView will rotate with them (Rotating in whatever direction ...

[iPhone]How to switch screens by touch and drag?

I want to make a iPhone application which can switch screens by touch and drag, follow below picture: Please guide for me! ...