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

The Archive Base Latest Questions

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

When I add new view, I always do same and boring work. If I

  • 0

When I add new view, I always do same and boring work.

If I add UIWebView, I would do follows,

  • add codes to header file. ( declare, property )
  • add codes to source file. ( synthesize, viewDidUnload, dealloc )
  • add UIWebView in IB and connect to the outlet in File’s Owner.

[ViewController.h]

@interface ViewController : UIViewController
{
    UIWebView *_webView;
}

@property (nonatomic, retain) IBOutlet UIWebView *webView;

@end

[ViewController.m]

@synthesize webView = _webView;

- (void)viewDidUnload
{
    [super viewDidUnload];
    self.webView = nil;
}
- (void)dealloc
{
    [_webView release];
    [super dealloc];    
}

What if I should add 3 labels and 2 buttons?
What if I have to add textview and some imageviews?

Don’t you think it is boring? I would like to listen to your idea.

I hope there will be more easy and simple way to add outlet to the code.
Does anybody have a good idea? 🙂

  • 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:58:59+00:00Added an answer on June 5, 2026 at 8:58 am

    When using Interface Builder, If you select an Object drag it’s reference to your header, you’ll see a popup where you can name it so theres less typing for you to do. As seen below:

    enter image description here

    This will automatically declare the IBOutlet UIButton *myButton for you, and insert the release and nil code into dealloc and viewDidUnload methods.

    Same method also works for actions, as seen below.

    enter image description here

    Once you Connect it will automatically insert the new Action -(IBAction)cancelSelected:(id)sender into your @implementation class.

    Point being, all that’s boring for you to do can be done in 2 Reference connections, and inputting data into 2 fields. 🙂

    Hope this helps!

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

Sidebar

Related Questions

When I add a new form to an ASP.NET project (WebForms), and then View
My view for the new form is <h1>Add Form 3C </h1> <%= form_for([@basiccase, @form3c])
I know I can use codes to add UITableView one by one. [self.view addSubview:tableview1];//
How to add new hyperlink column to an asp.net gridview where columns are autogenerated?
how to add new column in new DataTable But Erorr private void LoadtoList() {
How to add new css class or id and then write properties for html
When I attempt to add new item to my web project (by right-clicking, add
Is it possible to add new codec's to ffmepg? i searched a bit and
I'm looking to add new states to a TextView. I chose TextViews because they're
I wish to add new contacts in WP7. I have used the following private

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.