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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:37:47+00:00 2026-06-13T06:37:47+00:00

In iOS 6 you have Unwinding Segue to return to previous view controller. I

  • 0

In iOS 6 you have Unwinding Segue to return to previous view controller.

I am now working with storyboard, to figure that thing. And i am on iOS 5 where i dont have Unwinding Segue.

The picture explains the situation:
enter image description here

In third window (i think its officially called story) there is a Done button.

How to make that button return an object with text on screen and return to window 2?
There, i window 2 the table should refries, but that is out of the scope of this question.

What i did was to implement IBOutlet in ThirdWindowViewController (lets call it that), which is linked to IBAction method.

@property (nonatomic, strong) IBOutlet UITextView* textView;

@property (nonatomic, strong) Note* note;

@property (nonatomic, retain) IBOutlet UIBarButtonItem* doneButton;

- (void) configureView;
- (IBAction) doneAction:(id)sender;
- (BOOL) prepareNoteForTransition;

EDIT_01

As Tom wrote, you need a delegate. That is the way i actually did it, with methods i put above. I just thought that there is some more apple-specific way to do it, like that Segues. or some alternatives.

Thanks guys.

  • 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-13T06:37:48+00:00Added an answer on June 13, 2026 at 6:37 am

    You want to set a delegate property in the ‘story’ view controller for the presenting view controller:

    NotesViewController.m

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
        if ([segue.identifier isEqualToString:@"showStoryViewController"]) {
            [segue.destinationViewController setDelegate:self];
        }
    }
    
    - (void)storyViewControllerDidPressDoneWithText:(NSString *)text note:(Note *)note
    {
        self.note = [NSString stringWithString:note];
        [self dismissViewControllerAnimated:YES completion:NULL];
    }
    

    Story.m

    - (IBAction)doneAction:(id)sender
    {
        [self.delegate storyViewControllerDidPressDoneWithNote:self.textView.text note:self.note];
    }
    

    also make sure to #import "NotesViewController.h" in Story.h

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

Sidebar

Related Questions

(iOS) I have a view that contains multiple textviews under static headings (see image
I am working with NSCache in iOS i have following code in .h file
I have an iOS app that uses a number of enums for valid values,
I have an iOS app with a UITableView that has flexible width, which allow
I have an iOS app that pulls user data down from a web service
I have a iOS app that, in a nutshell, uses a UITableView and a
(iOS) I have a UITableView as a root view (screen 1). when a cell
I've reviewed many websites and youtube videos that have IOS 5 storyboarding information. Most
Views in iOS have the option to Clip Subviews which hides everything that overflows
iOS : I have app that open some content and i have added button

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.