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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:04:53+00:00 2026-06-10T10:04:53+00:00

When I create Universal app in my project start, XCode automatically create ViewController class

  • 0

When I create Universal app in my project start, XCode automatically create ViewController class and XIB File for both iPhone and iPad like

ViewController.h
ViewController.m

ViewController_iPhone.xib
ViewController_iPad.xib

I need to add another Class with both iPhone and iPad XIB Files.
But when I create new file in XCode, I can only choose XIB file for one thing.
If I checked Targeted for iPad checkbox, i can get only XIB file for iPad.

I want to add both iPhone and iPad XIB with class.
How can I do that?

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

    You just need to link your ViewController of iPad in inspector like following.

    To link a .xib to a class with Xcode4:

    Open your new added iPad .xib.

    In the placeholder select File’s Owner.

    In the third thumbnail choose “Identity Inspector” in right panel, and then edit the “Custom Class” field and enter your class name like (SecondViewController).

    After that you will be okay with XIB file.

    I think my answer can help you.

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

Sidebar

Related Questions

I am trying to create a Window-based Universal app for iPhone/iPad. I used the
I was doing a project as Universal binary for iPhone/iPad. I created the iPhone
I'm trying to do the basics steps of creating a universal (iphone/ipad) app in
I have two cocoa-touch apps in one Xcode project. Xcode gives me iPhone/iPad related
iPhone/iPad dev newb here... I am using MonoTouch to create a universal iPad/iPhone storyboard
I would like to create an iPhone app for now and get it released
I have a universal app and for each device (iPad, iPhone) have different sets
Possible Duplicate: Convert ipad application to iphone. Universal app I created one application which
I've created an iPad game using the Universal App Xcode template. Since I'm in
I started today to upgrade my iPhone-App to an Universal-App. So I'm using Xcode

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.