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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:39:59+00:00 2026-06-08T08:39:59+00:00

what i have is when you select something is a uipickerview a label is

  • 0

what i have is when you select something is a uipickerview a label is than changed to the contents of the picker view. This works however I’m having trouble with taking the contents of the label in my pickerView.h and send it to set the contents of another label in my pickerDuration.h(secondViewController)

  • 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-08T08:40:00+00:00Added an answer on June 8, 2026 at 8:40 am

    okay try this….

    Have a NSString in ur SecondViewController and make sure u create a property of it (strong if u are using IOS 5 ARC) Synthesize it

    You must have an object of SecondViewController for navigation purpose. Use the same object to set the value like this

    secondViewObj.myStr = label.text;
    

    make sure u do that before navigating to the next view

    EDIT

    Okay Try this

    After performSegueWithIdentifier:sender: your view controler will call
    assuming your new view controller has some propertys to set:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    
    
        if ([[segue identifier] isEqualToString:@"NextView"])   {
           SecondViewController *myVC = [segue destinationViewController];
            myVC.mystr=  label.text;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have something like this: $db=new PDO($dsn); $statement=$db->query('Select * from foo'); while
If I have a TTreeView, and I call something like this: myTreeView.Select(nodeIWantSelected); it gets
Here is my problem. I have a select statement something like this: select *
I have : select id=select1 runat=server> option>choose something /option> /select> and I have this
I have a HTML select like this: <select name=something> <option value=a>1</option> <option value=b>2</option> <option
Let's say I have SELECT name FROM table which gives me something like foo
I have a stored procedure which basically does something like select top 1 expiryDate,
I have to join queries from multiple databases, something like: SELECT T1.*, T2.* FROM
I have a query something like the following: select sum(t1.qty) t1Total, sum(t2.qty) t2Total, sum(t1.qty
I have a table with many rows and each row has select lists. Something

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.