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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:41:38+00:00 2026-06-05T13:41:38+00:00

My project has the following scenario: [Preview View Controller] –(Modal)–> Navigation Controller –(Top)–> [Photo

  • 0

My project has the following scenario:

[Preview View Controller] –(Modal)–> Navigation Controller –(Top)–> [Photo Setting View Controller]

In the [Preview View Controller], I have a button that will perform a modal segue (identifier=”PreviewToSetting”), I have in my [Preview View Controller].m file define the prepareForSegue method:

- (void)prepareForSegue:(UIStoryboardSegue *) segue sender:(id)sender {
    if ([segue.identifier isEqualToString:@"PreviewToSetting"]) {
        UINavigationController *unc=segue.destinationViewController;
        PhotoSettingViewController *psvc=(PhotoSettingViewController *) unc.topViewController;
        psvc.lblAudio.text=@"TEST";
    }
}

I set the breakpoint in this procedure and did see the above block running without error. The segue does perform successfully and lead me to the “Photo Setting” scene, however the text of lblAudio was not set to “TEST” as I thought it should be, anyone knows why?

Some more information:

  • lblAudio is an UILabel Outlet property in PhotoSettingViewController (UITableViewController Subclass) in a static table cell within a table section
  • lblAudio is sycthesized and defined as

    @property (strong,nonatomic)IBOutlet UILabel *lblAudio;

  • The lblAudio IBOutlet is properly bind such that if I redefine the text property in viewWillAppear method like self.lblAudio.text=@”TEST”, the label text will be properly get changed to “TEST”.

  • 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-05T13:41:39+00:00Added an answer on June 5, 2026 at 1:41 pm

    As the property is IBOutlet at time of segue it is not initialized. so try to do something like

    Create one property for text of label like NSString *labelText and assign the value @"TEST" to that property and in viewWillAppear: method assign it to the label will do your work

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

Sidebar

Related Questions

I have the following situation. My project has a main.scala.html file and a folder
The following scenario came up in our project: We have hierarchical business objects. The
My project has the following setup Controller -> Service (for validation) -> Repository (for
Consider the following scenario: Someone has a project on Github that might be updated
In a Windows Phone project I have the following scenario: The user types some
I'm using Automapper and I have the following scenario: Class OrderModel has a property
Currently I am working on a project which has following setup. AVR micro-controller IDE
We have the following scenario with our project: A core web application packaged as
I have a project that has the following line in the additional includes section:
Assume my git repository has the following structure: /.git /Project /Project/SubProject-0 /Project/SubProject-1 /Project/SubProject-2 and

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.