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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:56:00+00:00 2026-06-06T19:56:00+00:00

sending text to label and number to int from tabelview to viewcontroller but it

  • 0

sending text to label and number to int from tabelview to viewcontroller but it is not working

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    pushnavViewController *detailViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"pushnavViewController"];

    [self.navigationController pushViewController:detailViewController animated:YES];
    detailViewController.pushh.text = [IDNum objectAtIndex:indexPath.row];
    detailViewController.pushh.text = [listt objectAtIndex:indexPath.row];
}

I also tried to do that , but not working :

detailViewController.pushh.text = [IDNum objectAtIndex:indexPath.row];
detailViewController.pushh.text = [listt objectAtIndex:indexPath.row];
[self.navigationController pushViewController:detailViewController animated:YES];

i made all the property and synthesize them :

@property (nonatomic) UILabel *pushh;
@property (nonatomic) UILabel *IDnumber;

so, any idea?

    NSArray *listt,*IDNum;
  • 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-06T19:56:04+00:00Added an answer on June 6, 2026 at 7:56 pm

    Well, for one you are using detailViewController.pushh.text for both assignments. Should be detailViewController.IDnumber.text for the first one, I believe. Secondly, you can’t change the .text property of the label until after the view is loaded.

    Instead, create an NSString property and save your information to the NSString, then in your viewDidLoad method of you pushnavViewController assign the label.text with the value of the NSString property.

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

Sidebar

Related Questions

I've used ColdFusion for sending text emails for years. I'm now interested in learning
I am sending password text to the http service request object.like <request><password>pass.text</password></request> now this
I am sending UTF-8, japanese text, to my server. It works in Firefox. My
I am sending mails (in asp.net ,c#), having a template in text file (.txt)
sending mail along with embedded image using asp.net I have already used following but
Having some trouble sending properly formatted HTML e-mail from a PHP script. I am
how to send text from textarea in to the HTML code while typing ?
I have finished the majority of my application that I am working on, but
With preferably using jquery id want to update written text from input field into
Suppose to have a code like this: <div class=notSelected> <label>Name <input type=text name=name id=name

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.