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

  • Home
  • SEARCH
  • 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 1081965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:14:14+00:00 2026-05-16T22:14:14+00:00

I have made a custom object called students that has two nsstring object. One

  • 0

I have made a custom object called students that has two nsstring object. One is for the name and the other for the student id. If I try to pass the custom object to something that takes nsstring, it doesn’t work. I want to pass the name. How can I do this?

  • 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-16T22:14:14+00:00Added an answer on May 16, 2026 at 10:14 pm

    You can nest your method calls like this:

    cell.textLabel.text = [[studentArray objectAtIndex:indexPath.row] name];
    

    Or if you defined your members as properties and want to access them via dot-notation:

    cell.textLabel.text = [studentArray objectAtIndex:indexPath.row].name;
    

    The only issue with the dot-notation approach is the compiler will most likely give you warning that it couldn’t find the property name, so you will need to cast it to the appropriate data type before accessing the property via dot-notation.

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

Sidebar

Related Questions

I have an object called Communicator. Communicator has a custom init method -(id)initWithEmail:(NSString*)theEmail andPassword:(NSString*)thePassword
So I have this custom object i made called 'Box', it's throwing the error
I have a custom made slideshow object to perform the usual stuff the name
I have a shopping cart ListView control backed by a custom object that has
I made a custom object that inherits from NSObject. Let's say I have an
I have a custom made class called Graph in which I use adjacency lists.
I just wrote some code. It has my own custom made class. In that
I have made a very simple custom object pictureData . Here is the .h
Ok, so i have a custom object that is a myUser. myUser looks like
I have created an arraylist that is made up of custom objects. Basically the

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.