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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:05:38+00:00 2026-05-25T06:05:38+00:00

I am using navigation based application. In RootViewController I am initializing an array object

  • 0

I am using navigation based application. In RootViewController I am initializing an array object and calling another(Pushing it into stack) class Test in which we have to use that array value that i initialized in the RootViewController. How can we access ?
Thanks 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-05-25T06:05:38+00:00Added an answer on May 25, 2026 at 6:05 am

    You can access the parent view controllers from any other pushed view controller. The very first element in the collection of parents is the root view controller. Access this element, cast it to your specific implementation, then access your array object from it. So something like:

    UIViewController * rootVC = [self.navigationController.viewControllers objectAtIndex: 0];
    NSArray * myArray = ((MyUIViewController *) rootVC).myArrayProperty;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a test application for listing movies in a Navigation Based Application using
I've created an application using the Navigation-based template in Xcode. I've also created a
Situation: I am using the Navigation Based Application project template. And my root view
Using the basic starting app from XCode for a navigation based application, I'm trying
I am creating a new file using Xcode's navigation based application and I see
I have a navigation based application using Core Data and several levels of drill-down
i am using navigation based application but i want to pop my view from
I added toolbar to on screen of navigation based application using the following code
Currently I have a navigation based application and obviously the RootViewController is a UITableView.
I am using a navigation based iPhone application, and I defined an IBOutlet propert

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.