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

  • Home
  • SEARCH
  • 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 6790391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:43:12+00:00 2026-05-26T17:43:12+00:00

Within one of my views, there is a webview that I load in a

  • 0

Within one of my views, there is a webview that I load in a html page locally. Within this page I have a link (href) that when pressed it opens a view within the application and not a with in the webview/current view.

For example I have a button on this page that if pressed opens another view, is there any way I can do the same within a webview using a normal link?, the code I use for this button is below so is there away to get the href link in the web view link to similar code to open my new view up??

The link in the webview is a normal See view ???

    #import "anotherview.h"

    .....


    -(void)myhereflinkBtn:(id)sender{
anotherview *newviewPage = [[anotherviewhehffvv alloc] initWithNibName:nil bundle:nil];
[UIView transitionFromView:self.view 
                    toView: newviewPage view 
                    duration:1.0 
                   options: (UIViewAnimationCurveEaseInOut | UIViewAnimationOptionTransitionCurlUp)
                completion:^(BOOL finished){}];
    }

I hope this make sense.

  • 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-26T17:43:12+00:00Added an answer on May 26, 2026 at 5:43 pm

    Well with a bit of looking and a fresh face this morning I have manged to get 90% of what I am after working:

    Using this link as help CLICK HERE i have managed to get my xcode register my link press

       - (BOOL)theWebView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
    
           if(navigationType == UIWebViewNavigationTypeLinkClicked) {
    
               NSLog(@"LINK CLICKED:");
    
    
               [webView stopLoading];
    
               return YES;
           }    
    
           return YES;
       }
    
      - (void)viewDidLoad
      {
          webView.delegate = self;
          [super viewDidLoad];
    
      }
    

    Within the header file I also then added < UIWebViewDelegate >

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

Sidebar

Related Questions

This has gotten me extremely confused. I have one scroll views on a page
I have two views within one .xib (one view for landscape, another for portrait).
In my MVC project indide one of my views I have some JQuery that
There is an itemscontrol in one of my views that lets the user reorder
Within one Activity I have th following piece of code: public void onStartMonitoringToggleClicked(View v)
I have 2 sections within a table view and I have loaded one section
Possible stupid question: let's say I have two apps contained within one project. Can
I have 2 Oracle 10.2.0.4 servers, one located within our internal intranet network, and
I have two backbone Views. One is the main view and the other is
I have a Metro app using a WebView control. I'm using NavigateToString to load

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.