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

  • Home
  • SEARCH
  • 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 7517525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:28:48+00:00 2026-05-30T01:28:48+00:00

My team has recently converted a fairly large project to ARC. The conversion went

  • 0

My team has recently converted a fairly large project to ARC. The conversion went well and the app runs, and works fine on 5.0.

The problem is on 4.3. Any view controllers instantiated in code with plain init do not load any subviews of the vc’s view (this does work on 5.0)

Here’s the summary:

Instantiate a view controller with [[MyViewController alloc] init]. (UIViewController’s init calls initWithNibName:nil bundle:nil)

This loads a nib with the same name as the View Controller (MyViewController.xib)

*Expected: the nib is instantiated normally with all subviews of top level view and all outlets set

*Actual: the nib is instantiated, and the MyViewController object’s view property is set. However, the view’s subviews array is empty and any outlets to these views are nil, and the view appears empty when presented

*Workaround: instantiate VC/load nib by using

[[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]

I haven’t been able to replicate this in a clean project, either starting with ARC or converting to ARC. My team and I are working on this, but in the meantime, wondered if anyone else has run into this and found a root cause or trigger.

  • 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-30T01:28:50+00:00Added an answer on May 30, 2026 at 1:28 am

    A follow up in case anyone else has this problem.

    Since we are supporting 4.x and using ARC, we decided to use Mike Ash’s MAZeroingWeakRef to get a weak pointer in 4.x. Eventually we isolated the problem enough to trace it back to MAZeroingWeakRef. We posted an issue to the MAZWR project and github and Mike explained what was happening:

    https://github.com/mikeash/MAZeroingWeakRef/issues/13

    (Basically MAZWR changes the internal name of the VC class to something like TestViewController_MAZeroingWeakRefSubclass. The VC’s init depends on this class name to load its associated nib — so when it is changed it can’t find the nib. By calling initWithNibName:bundle: and explicitly supplying the class name the associated nib is loaded properly.)

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

Sidebar

Related Questions

Our team has recently been working on a logic and data layer for our
Our team has recently been considering pushing out a minor registry fix to users
One of my team has recently come across an interesting glitch in the matrix.
Recently my team has spent too many hours setting up machines with previous product
My team has recently switched to rails, and we're yet to implement an error
We recently ran in to a problem.Our team has automated test scripts with selenium.
Our team has recently inherited code which is extremely disorganized. As a result, my
my team has made the decision recently to use Moq as our mocking framework
My manager has recently asked my team and I for our input about implementing
My team has recently started using Lance Hunt's C# Coding Standards document as a

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.