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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:43:15+00:00 2026-05-31T04:43:15+00:00

After tap some row in UITableView apps goes to new screen. I can replace

  • 0

After tap some row in UITableView apps goes to new screen. I can replace e.g. the image in UIImageView in this screen, while opening, but I defined there also NSString which cannot be replaced. Don’t know why. This NSString is just defined in file .h of screenView class as NSString with @property(nonatomic,retain).

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath    *)indexPath
{

[self.navigationController pushViewController:self.screenView animated:YES];

self.screenView.title = @"Screen Name";
self.screenView.imageView.image = MyImage; // this work
self.screenView.MyString = @"Work?"; // but this not
}

Why it doesn’t want to attribute a new value for NSString, while the image can be replaced this way?

  • 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-05-31T04:43:16+00:00Added an answer on May 31, 2026 at 4:43 am

    In which method do you log MyString?

    I assume you are doing this when the view is being shown or loaded, which means that the it will not contain a value since you are setting it after the push.

    I would suggest to try:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath    *)indexPath
    {
        self.screenView.title = @"Screen Name";
        self.screenView.imageView.image = MyImage; // this work
        self.screenView.MyString = @"Work?"; // but this not
    
        [self.navigationController pushViewController:self.screenView animated:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build some iOS apps while learning and am having some trouble
I can't figure out why my tableView isn't updating after I tap the delete
I run some TAP Tests using TAP::Formatter::HTML. This CPAN module generates beautiful dynamic HTML
After reading this question , I was reminded of when I was taught Java
I have seen some iPhone apps in which they show first section of rows
I need help with some programming logic... I need to loop this method to
Alright, I'll try to explain this the best I can. I have an iPhone
I'm trying to make my Core data backed UITableView have reorder ability, After implement
In my application I have some phone numbers, so that the users can call
I'm having a little problem with this Ruby code: class Tap attr_accessor :c, :v,

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.