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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:07:35+00:00 2026-06-03T01:07:35+00:00

I am using the utility application template in Xcode with a main and a

  • 0

I am using the utility application template in Xcode with a main and a flipside view.
In the main view I have a property label called L0. I am trying to copy that label on the flipside view.
On the flipside view, I have declared

@property (weak, nonatomic) IBOutlet UILabel *label;

It is synthesized in the .m file

@synthesize label = _label;

and my prepareForFegue method is :

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    if ([[segue identifier] isEqualToString:@"showAlternate"]) {

     FlipsideViewController *fsv = (FlipsideViewController *)[segue destinationViewController];
     fsv.label = self.L0;
     fsv.delegate = self; 
}}

However the text of the label on the flipsideview doesn’t change although if I NSLog fsv.label.text in prepareForSegue I see that it is properly set to the value of L0.text.

Any Idea on what am I doing wrong?

  • 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-03T01:07:37+00:00Added an answer on June 3, 2026 at 1:07 am

    At the point of prepareForSegue your destination view controller has been created, but the view hasn’t loaded. Therefore whatever you assign to the label is overwritten when the view is loaded. You can confirm this by logging the label property before you do anything with it – it will be nil.

    The destination VC should have a string property instead, which you set in prepareForSegue with your desired text. You then set the label’s text from this string property in viewWillAppear.

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

Sidebar

Related Questions

I have an application that I started with the Utility Application template. I'm using
I am making an app using a utility application template. I am trying to
I'm using the Utility Application template to build my app. Having a hard time
I'm using the template for a utility Application. In the FlipSideViewController, I added an
I'm building an application based on the Utility template from Xcode, to which I
I am creating an application based on the Utility template. The main screen consists
In my application I have written my own Logging utility using Java.Util.Logging import java.io.IOException;
I have created a simple hello world application in xcode using the command line
I have the following little test application, where I'm trying to employ a template
I have a dump utility that I am using to study the ContactsContract since

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.