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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:16:34+00:00 2026-06-04T20:16:34+00:00

Got a question, I’m trying to return to a previous view and share some

  • 0

Got a question, I’m trying to return to a previous view and share some data over to the frame I’m returning to. The data will be date and time and I would like to send this to a textField.

For example I’m calling the date *returneddate and the textField I’m calling *dateTime. The views are call *PickDateTime and SubmitEventsP2.

If you need more information just ask me and I’ll add it if I can to make it easier for you to help me.

I’m using Xcode 4.2.

  • 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-04T20:16:35+00:00Added an answer on June 4, 2026 at 8:16 pm

    Ok.. its pretty simple.. you should use a delegate… if i understood correctly, you are on a secondary view and when you return to the main view you wish to send the data from the second view back to the main view, right?

    so, in your second view, in the .h file, on top of interface, you will declare the delegate with:

    @class nameOfTheViewController;
    
    @protocol nameOfTheViewControllerDelegate <NSObject>
    -(void)methodNameOfDelegateReturning:(NSString *)string otherString:(NSString *)string2;
    @end
    

    And in your interface, still in the .h, you will create a reference of this delegate like:

    @property(nonatomic, weak) id <nameOfTheViewControllerDelegate> delegate;
    

    after that, in your .m of nameOfTheViewController you will do:

    @synthesize delegate = _delegate;
    

    After you created you delegate in the nameOfTheViewController file, you will call the delegate method you just created exactly where and when you want to return to the previous view, filling it with the parameters you want to pass back… and of course, in your mainViewController, right in your didPrepareForSegue method, you will create a instance of the nameOfTheViewController class and set its delegate proeprty to self… for this to be possible, in your mainViewController .h you must conform to the nameOfTheViewControllerDelegate protocol.

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

Sidebar

Related Questions

My previous question got a lot cons. I will try again, with a code
Got a question for you all! I'm trying to make a navigation system for
I got a question ;) Actually I want to use core-data in different threads.
I got a question about the behavior of lookup fields when importing data. I
I got a question when I was doing some Array in PHP. I don't
I got a question about MVC 2 and returning views for partials: I got
Got a question regarding to the underlying data structure of float (and precision) in
I got some question regarding the shared and static libraries.So let me tell you
I got this question while interviewing some companies. I don't think I answer the
using opengl 3.3, radeon 3870HD, c++.. I got question about interleaved arrays of data.

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.