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 8379199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:06:48+00:00 2026-06-09T16:06:48+00:00

I can do this in a tabbed application, no problem, but getting it to

  • 0

I can do this in a tabbed application, no problem, but getting it to work in a single-view application (using xib) is driving me crazy.

I’ve created a new class, WebViewController. The header is:

#import <Foundation/Foundation.h>
#import "GHViewController.h"

@interface GHWebViewController : UIViewController <UIWebViewDelegate>
{
    IBOutlet UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

@end

And the implementation is:

#import "GHWebViewController.h"

@implementation GHWebViewController

@synthesize webView = _webView;

-(void)viewDidLoad
{
    [super viewDidLoad];
    NSString *fullURL=@"http://www.amazon.com/Books-by-Joel-Derfner/lm/RVZNXKV59PL51/ref=cm_lm_byauthor_full";
    NSURL *url = [NSURL URLWithString:fullURL];
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    [webView loadRequest:requestObj];
}

@end

So far, so good. But going to the web view is only one option of several available to the user (through bar buttons). So I’ve added a UIWebView to my ViewController but hidden it until the user presses the button to go to the web view.

And here’s where I’m stuck. I’ve tried making this a delegate of that, and that a delegate of the other thing, and I can’t tell what’s right and what’s wrong, and the IBOutlet in WebViewController won’t connect to anything in my ViewController and I’m just getting more and more confused. I tried adding another xib for WebViewController but that just led to disaster. I’m out of my depth here.

So my multi-part question is:

  1. Is using a UIWebView as one of several options as I’ve described possible with a single-view application?
  2. If so, what do I need to do to accomplish it–thinking of a) delegation, b) code, and c) connections in the User Interface?
  3. If not, how should I approach the task instead?

Off to see Total Recall. Perhaps that’ll clear my head….

  • 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-06-09T16:06:50+00:00Added an answer on June 9, 2026 at 4:06 pm

    I’m not quite sure if I fully understand your question; the paragraph before your 3 questions are somewhat confusing…

    But some thoughts:

    1. You don’t need that ivar in interface. Esp. you shouldn’t have IBOutlet in your ivar declaration. If you need IBOutlet, it should be in your @property declaration rather than your ivar.

    2. Maybe you don’t really need an IBOutlet. i.e. you don’t need to put your webView on xib. (you can if you want to, but you don’t need to.)

    3. So you can just have an IBAction hooked up with a button. When that button is clicked, you can alloc init your webView (and set its frame), add it to your self.view, and set webview.delegate = self or something.

    4. Then you can handle the loadURL and stuff like normal. When you click on that button again (or some other button), you just remove your webview from your view.

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

Sidebar

Related Questions

Can this be done? Basically I work on multiple projects using xampp, and I
I have web application in that i am using tabbed interface control in this
I created a Tab-based application in Xcode 4 using the Tabbed Application template. In
Can this method work? public String sayHello(){ return Hello.jsp?name= + laala; } I am
In Xcode 4.2, I created a new project from the tabbed application template. Now
I have this code that i did on Xcode 4.2 in a tabbed application
I'm working with Xcode 4.2. I started to work with Tabbed Application and now
I've developed a nice rich application interface using Backbone.js where users can add objects
Using core data on a on an application that has tabbed views. The second
This is my first tabbed application for Android. I walked through the HelloTabWidget app

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.