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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:28:53+00:00 2026-06-05T15:28:53+00:00

I am working on application for Ipad.in this application i have a UIButton on

  • 0

I am working on application for Ipad.in this application i have a UIButton on my first class Xib ,Now i want to add second class XIB in this first Class XIB on Button click.i know the how to call second class XIB.which is just like this..

-(IBAction)displaysecondclass
{
 secondview *sec=[[secondview alloc] initWithNibName:@"secondview" bundle:nil];
 [self presentModalViewController:sec animated:YES];
 [sec release];
}

But i not want to go secondclass ,i need to display second class XIB on firstview just like this.

-(IBAction)displaysecondclass
{
 secondview *sec=[[secondview alloc] initWithNibName:@"secondview" bundle:nil];
 [self.view addSubView:sec];
}  

can any one help me how to add second class xib in first view.thanx in advance.

  • 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-05T15:28:54+00:00Added an answer on June 5, 2026 at 3:28 pm

    change the button code to

    -(IBAction)displaysecondclass
    {
     secondview *sec=[[secondview alloc] initWithNibName:@"secondview" bundle:nil];
     [self.view addSubView:sec.view];
    }
    

    Please note that you will need to add additional functions to release the viewcontroller once you dont need it anymore

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

Sidebar

Related Questions

I have an working application. Now I want to change the table names of
I have been working on ipad application. In this application I have several views.
I am working on an iPad application. In this I have to show some
I'm working in iPad Application and I have a Picker in One XIB, I
Hi I am working With Ipad Application I want to Add UISplitView to UIViewController
i am currently working on an iPad application, my client wants to add Function
In one of the iPad Application, I am working I have added custom views
I am working on a splitView application for my iPad . I have implemented
I've been working on importing XML into an iPad Core Data application. I have
I am working on small web application for iPad Safari. I have to display

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.