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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:50:38+00:00 2026-06-08T10:50:38+00:00

I have the following: @interface HelpViewController : UIViewController <UIWebViewDelegate> @property (nonatomic, retain) IBOutlet UIWebView

  • 0

I have the following:

@interface HelpViewController : UIViewController <UIWebViewDelegate>
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@end

And for the same view controller

@implementation HelpViewController

@synthesize webView = _webView;

- (void) viewDidLoad
{
    [super viewDidLoad];
    NSString *filePath=[[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"];
    NSLog(@"%@", filePath);
    [self.webView loadData:[NSData dataWithContentsOfFile:filePath]
                  MIMEType:@"text/html"
          textEncodingName:@"UTF-8"
                   baseURL:nil];
}

And a basically empty nib to go with this view controller. The file's owner is has an outlet to view. The file path comes back OK. But nothing shows up in the view. I think the problem is that IBOutlet UIWebView *webView is not connected to anything, ’cause I don’t know what to connect it to. Is that the problem? If so I need to know what to connect it to; otherwise, I need any kind of help! Thanks!

EDIT: Forgot to mention that I think I have the same problem as this SO Question where it says to connect the outlet, but doesn’t say to what.

  • 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-08T10:50:40+00:00Added an answer on June 8, 2026 at 10:50 am

    Alright, after a lot of study of other SO pages and some non-SO material, I figured out that I had not added a web view from the library to the nib. So that’s why I couldn’t hook it up. So I made sure first that the ‘regular’ view was hooked up, added the web view from the library and hooked up it’s view. Then I needed the following additional line in my code:

        [self.view addSubview:_webView];
    

    to viewDidLoad. Whew!

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

Sidebar

Related Questions

I have following simple class: @interface Article: NSObject { NSString *title; } @property (copy,
I have the following code: @interface NeighborProfileViewController : UIViewController { UIImageView * profPic; UITextView
Greetings everyone... If I have the following interface: interface IMyInterface { int property {
I have the following interface called IAccountService. I also have exactly the same interfaces
Say I have the following: @interface MyClass : NSObject { NSString* _foobar; } @property
I have the following interface: interface MySortedCollection<T extends Comparable<T>> { boolean isElement(T t); void
I have the following interface defined to expose a .NET class to COM: [InterfaceType(ComInterfaceType.InterfaceIsDual)]
I have the following interface: public interface IPlateSubCategory<T> { T GetItem(int plateID); } And
I have the following interface declarations: interface IOrder<T> where T: IOrderItem { IList<T> Items
I have the following interface: public interface SingleRecordInterface<T> { public void insert(T object); }

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.