Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3434410
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:41:43+00:00 2026-05-18T07:41:43+00:00

So I wanted to make my UIWebview respon to touch events. I have read

  • 0

So I wanted to make my UIWebview respon to touch events. I have read several topics about this. I created a Subclass of UIWebView, added it so my UIViewController and linked it via IB.
In my Subclass, i overrode touches ended and called [super touchedEnded]. didnt help.
I overrode hittest, but it doesnt call super either!

If I add this code to my subclassed UIWebView:

@implementation UIWebView (CustomView)

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {

NSLog(@”hit”);

return self;
}

@end

then the touches ar forwarded to the superclass, but hittest is not(!)and additionally the webview stops scrolling.

Well, I want so recognize a touch in my webview and pass it to super – what am I doing wrong?

EDIT:

I’m wondering, why so many suggestions include using ‘hittest’ – this results in being unable to scroll your webview…..any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:41:43+00:00Added an answer on May 18, 2026 at 7:41 am

    Answering my own question here – this is the version that did what I wanted: The right way. This is about subclassing UIWindow and passing on the events caught.

    I would still love some explanations to my previous questions tho 😛

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to make a simple chart of users that have been created in
I wanted to make sure about something in Java: If I have a Character
I wanted to make a lazy list in Scheme. This is what I have
I wanted to make it clear for me. I read about AOP concept and
I wanted to make a post request in this website: http://www.prezup.info/index.php?page=films in order to
I wanted to make a tryout this weekend with Cassandra + PHP in my
if wanted to make a this method print using zero pad how do you
I wanted to make a query with Rails, something like this: filters = Filter.joins(:category_filters).where(category_id
I wanted to make a generator that created files (and directories, etc...) based on
I wanted to make an associative array in Javascript in which I would have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.