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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:59:50+00:00 2026-06-16T17:59:50+00:00

Okay so what I have right now is two arrays with data. myArray1 has

  • 0

Okay so what I have right now is two arrays with data.

myArray1 has a long list of headings and myArray2 has a long list of descriptions. The relevant description for the heading is located in the adjacent point of the array. For instance if ‘Water’ is at one point in my Array1, then ‘Is a drinkable fluid’ would be at the same point, but in myArray2.

THEN myArray1 is displayed into a UITableView and when you click which ever entry, this passes the row number you have clicked into another view which loads, then on that view there is a textfield which is loaded with myArray2 objectAtIndex: whatever index was passed across.

This all works fine! so where is the question? I have been trying to implement a search bar like shown in this tutorial:

http://www.youtube.com/watch?v=SlhrYJxE_rY

But now my search results are displayed in the UITableView and when clicked the row that is passed is not specific to myArray2 because they are different sizes and I am getting the wrong description!!

So, how can I either store my data with the heading and description in the same entity? or how can I avoid search results truncating the actual table?

  • 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-16T17:59:51+00:00Added an answer on June 16, 2026 at 5:59 pm

    You can get the index of object in the array and then pass this index to next controller to show the description.You can get index as

    NSUInteger index = [array1 indexOfObject:@"water"];
    

    Hope it will help 🙂

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

Sidebar

Related Questions

Okay, right now I have a form that contains this select list: <%=Html.LabelFor(x =>
Okay i have two models: posts and comments. as you can think comments has
Okay I have an extensive ruby application running behind Ruby on Rails right now.
Okay so right now I have essentially this code: class a { public void
I have some serious problems with my app right now. Okay, so there are
Okay so right now I'm working on a program that has a whole bunch
Right now I have a silverlight app that gets data from a mvc site.
Okay, here is my problem: I have a form that requires to have two
Okay so i'm learning html right now and soon css. In my html coding
Okay, I'm hating Javascript right now, and I hope someone can help me. I

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.