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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:07:07+00:00 2026-05-27T07:07:07+00:00

1>1st project : I have created a window based cocoa touch app just for

  • 0

1>1st project :
I have created a window based cocoa touch app just for test, it’s straight forward and easy.
It’s basically just loading the view from the Nib file but have some code in the

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIImage * image = [UIImage imageNamed:@"ipod.jpg"];
    CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame];

    UIImageView* imageView = [[UIImageView alloc] initWithFrame:applicationFrame];
    imageView.image = image;
    imageView.userInteractionEnabled = YES;

    [self.view addSubview:imageView];

}

It works fine and just give me a simple image view.

2>2nd proejct

But when I trying to integrate those code into another cocoa project as the 1st view of a navigation

controller, it only gives me a white blank screen.

I basically specified the Nib file in the interface builder(under Navigation controller / view controller) “NIB Name”, and it only loads me a white blank view as if the code for adding the image view is not working. Why ???
BTW The viewdidload code above did run as I put a break point there, but it’s not giving me the image view.

One thing I did notice is when I create the UIImageView using Interface build instead of doing it by code in viewdidload, it works fine in the 2nd porject .

So I am wondering why the code not working fine for the 2nd project and How to make it work using code?

Many Thanks

  • 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-27T07:07:07+00:00Added an answer on May 27, 2026 at 7:07 am

    Is your view is wired up to the ViewControllers view outlet? The only other thing I can think of is that maybe you don’t have iPod.jpg included in the second project?

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

Sidebar

Related Questions

Hi I have created one fully xml based project. my doubts now I store
I'm doing a C# project window service. 1st time doing it. I have managed
I'm working on my 1st project using MS Unity IoC framework. If I have
In my Android project I have 3 classes: 1st a List class contains a
I have created a small flash CS4 project that has a few custom components
I am a git newbie. I just created a new project with just 4
I've created a simple solution with 2 projects. The 1st project (class library) contains
I have RCP, and 2 products, based on fetures. I have my.project.gui plugin, that
1st phase I have a problem shutting down my running JBoss instance under Eclipse
1st post on stackoverflow, hope to have great feedback :) I'm currently trying to

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.