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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:55:26+00:00 2026-06-17T10:55:26+00:00

The code part: UIWebView *wb = [[UIWebView alloc] init]; self.examplesView = wb; [wb release];

  • 0

The code part:

UIWebView *wb = [[UIWebView alloc] init];
self.examplesView = wb;
[wb release];
examplesView.scalesPageToFit = YES;
[self.view addSubview:examplesView];
NSLog(@"createViewsForRect: %@, examplesView.frame : %@",NSStringFromCGRect(rect), NSStringFromCGRect(examplesView.frame));

The output:

createViewsForRect: {{0, 0}, {320, 480}}, examplesView.frame : {{0,
0}, {0, 0}}

This UIViewController is added later to another controller, where is called a function to load something and I did a log:

examplesView.frame: {{0, 0}, {0, 360}}

Because the width is 0 that’s why isn’t visible. How to fix it? Why is getting 0 width?

This is an old, inherited code without ARC…

  • 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-17T10:55:28+00:00Added an answer on June 17, 2026 at 10:55 am

    The first line shall be

    UIWebView *wb = [[UIWebView alloc] initWithFrame:rect];
    

    then wb will be initialized with the frame you want.

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

Sidebar

Related Questions

I need the UIGraphicsBeginImageContext(self.view.frame.size); changed to where the .frame part pulls from webView -
http://msdn.microsoft.com/en-us/vcsharp/aa336760#WhereSimple1 On this page, when the code part being highlight and release mouse, the
Suppose I have a Markdown string: * Bullet has *bold [code]*test[/code] part*. *Another\nbold* item.
I want to code this part of a VB6 application in c#. How can
I am using the following code as part of an autocomplete script to avoid
Strange problem happening where the end of these 2 blocks of code (this part:
I've been re-working some code due to a memory leak. The code is part
Does your editor/ide highlight that a++; in this C/C++ code as part of a
I want to test my part of code that returns the users password question.
I have this part of code in my functions.php: function cc_admin_enqueue_scripts($hook) { $file_dir=get_bloginfo('template_directory'); wp_enqueue_script('media-upload');

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.