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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:06:24+00:00 2026-05-19T17:06:24+00:00

I have an iphone application containing two views The first view have a button,

  • 0

I have an iphone application containing two views
The first view have a button, now
i want to show the title of the button on the second view when that button is clicked.
How can i do it because if we save the title into a string ,the string get emptied when second view is loaded ?

  • 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-19T17:06:25+00:00Added an answer on May 19, 2026 at 5:06 pm

    In the interface declare the string and make a property:

     @interface MyViewController : UIViewController {
    
    
       NSString *string_i_want_to_set;  
    
     }
    
     @property (nonatomic, retain) NSString *string_i_want_to_set;
    
     @end
    

    In the implementation synthesize the string after @implementation MyViewController like this:

     #import "MyViewController.h"
    
    
     @implementation MyViewController
    
     @synthesize string_i_want_to_set;
    
     // OTHER CODE HERE...
    
     @end
    

    Then when you alloc/init the view controller you can set the property like this:

    MyViewController *myVC = [[MyViewController alloc] init];
    myVC.string_i_want_to_set = @"...."
    

    Hope this gives you more detail.

    Thanks
    James

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

Sidebar

Related Questions

I have created an iPhone application based on an OpenGL view. Now I would
I have an iPhone application with a settings.bundle that handles various settings for my
In my iPhone application I have a table view. When user taps any row,
I have two projects, a Cocoa iPhone application and a static library which it
I have an application that works some what similar to how iPhone's Contact application
I want to develop an iphone application that needs an english word dictionary. Can
I have an iPhone application that has a user preference page where the user
I have an iPhone application where i'm showing a settings page using modal view
I want to have my iPhone application create a PDF file and store it
I currently have an iPhone application that makes a call to an API to

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.