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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:30:00+00:00 2026-05-27T10:30:00+00:00

i have created a framework out of my existing code base and tried using

  • 0

i have created a framework out of my existing code base and tried using it in a new code base. This worked fine. But my application is getting crashed when i try to access the nib files which is a part of my framework bundle. This is the code i am using to access the view controllers XIB file.

testViewController *controller = [[testViewController alloc] initWithNibName:@"testViewController" bundle:nil];
[self.view addSubview:controller.view];

The app is getting crashed without generating any error or crash report. Here aremy questions

1 – Can we add xib files in our framework

2 – If, yes, what is the correct way to add and access the nib(xib)files from a framawork(currently i have added them in the “compile sources” section of my “build phases” tab in “build settings“)

  • 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-05-27T10:30:01+00:00Added an answer on May 27, 2026 at 10:30 am

    You need to write the name of the bundle in which you nib. files are store so change your above code to …

    testViewController *controller = [[testViewController alloc] initWithNibName:@"testViewController" bundle:yourBundle]; [self.view addSubview:controller.view];
    

    here your bundle is an object of type NSBundle. refer the NSBundle class for more info

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

Sidebar

Related Questions

I'm starting out using the Zend Framework and have created a suitable model which
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
I'm using Microsoft Sync framework 1.0 (without ADO.NET services) I have created 2 custom
I'm new to Entity Framework and am trying to figure things out. I have
I have created a new ASP.NET MVC project using the MVC Project Template. According
Using Microsoft's designer for the Entity Framework (v3.5), I have created an Entity Model
I have created a Dynamic Data site against an Entity Framework Model I have
I am getting started with the ADO.NET Entity Framework 4.0. I have created an
I have just started playing with the ASP.Net MVC framework, and today I created
Using the .net framework you have the option to create temporary files with Path.GetTempFileName();

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.