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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:54:11+00:00 2026-06-05T08:54:11+00:00

I am defining a uiwebview programmatically and its delegate and requests are done but

  • 0

I am defining a uiwebview programmatically and its delegate and requests are done but still no visible! why? Thank you

//do some loads on webviewSocial defined on IB and then set it to nil in order to init it after.

self.webViewSocial = nil;

self.webViewSocial = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, 320, 389)];
self.webViewSocial.autoresizingMask=(UIViewAutoresizingFlexibleHeight | 
                                       UIViewAutoresizingFlexibleWidth);
[self.webViewSocial setDelegate:self];
[self.vistaSocial addSubview:self.webViewSocial];

If I set a new webview it works but problem seems that webviewsocial is set on IB and after this coding is not visible anymore.

  • 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-05T08:54:14+00:00Added an answer on June 5, 2026 at 8:54 am

    Some general notes:

    • make sure that self.vistaSocial is not nil
    • make sure that self.vistaSocial is added to self.view

    Also dont release the webView and then reinitialize it
    Just change the properties of the existing webView
    For example if you want to change the frame of the existing webView and moving it to the new super view, you would do the following

    self.webViewSocial = CGRectMake(0, 44, 320, 389);
    [self.vistaSocial addSubview:self.webViewSocial];
    

    You dont need to release it and reinitialize a new one

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

Sidebar

Related Questions

Defining custom components in Facelets is easy and quick but there's one thing I
In Powershell I am defining a new PSDrive called test . But when I
; defining stream-for-each (define (stream-for-each proc s) (if (stream-null? s) 'done (begin (proc (stream-car
Defining some Tables in SQL-Server which will be accessed via ODBC from MS-Access. I'm
When defining colors using shorthand hexidecimal ( style=color: #FFF; ), is there a defined
When defining some identifiers in the definition section of my lexer (as described at
When defining a global or static array in c++ its memory is not immediately
We are defining some WCF contracts for a project. In one case we want
I have defined a UIWebViewDelegate class and instantiated it in the Delegate property of
When defining simple DataMapper resource, it sets default storage engine to InnoDB, but I

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.