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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:02:22+00:00 2026-06-09T06:02:22+00:00

I have pushed a view in navigation controller. For eg: view1 pushed view2, if

  • 0

I have pushed a view in navigation controller. For eg: view1 pushed view2, if I want to call any view1 method from view2. Is it possible. Is it a good practice.

TIA

  • 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-09T06:02:24+00:00Added an answer on June 9, 2026 at 6:02 am

    There are several ways of structuring your app to handle it’s in internal communication. The way you want to structure is up to you but it is necessary that you have basic knowledge in object oriented programming and preferably also the Model View Controller or other design patterns.

    Here are a few examples on how you could structure your app:

    Suggestion 1

    • Create a class A and let your app create an instance of it.

    • Let A create one instance of View1 and View2 each and keep a reference to them.

    • Let View1 call a method in A, which in turn can call a method in View2.

    • Let View2 call a method in A, which in turn can call a method in View1.

    Suggestion 2

    • Create an instance of View1 in your app

    • Let View1 create an instance of View2 and keep a reference to it.

    • Let View1 be delegate of View2

    • View2 can call methods in View1 by calling its delegate, and View1 can call methods in View2 by calling the reference.

    Suggestion 3

    • Create some classes M1, M2 and M3 (a model describing your application)

    • Create the Views View1 and View2.

    • Create a controller class C

    • Let View1 and View2 display the information in M1, M2 and M3

    • When user interacts with View1 or View2, let them call methods in C, which in turn calls methods in M1, M2 and M3 changing their states.

    • The changes in M1, M2 and M3 will be reflected by the information shown in View1 and View2.

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

Sidebar

Related Questions

I have a view (viewB) that is pushed in using the navigation controller from
I have a modal view controller whose view comes from a XIB. I want
I have an navigation controller, I have pushed two views into that. I want
I want to have a TabBar controller inside a navigation controller. So that when
I have a view that pushes another view with navigation controller. In this second
I have a navigation-based application with 2 UIViewControllers (controller-2 is pushed onto controller-1 when
I have a Navigation Controller with a View Controller displaying a button. The button
I have a view controller that i'm trying to push onto the navigation stack.
I have a view controller which includes a MPMoviePlayer inside. I hide the navigation
I have an app with a navigation controller as the root view. There are

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.