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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:59:40+00:00 2026-05-22T01:59:40+00:00

I am creating an app in which i want to display a text box

  • 0

I am creating an app in which i want to display a text box and when i enter an word in it ,then it will display the contents from the dictionary which are matching to that word.Now i want to display the list which will generate from my dictionary according to the word entered in text box ,in a table view and that table view should be on the same view controller where i am having the text box.Is it possible to do so. I mean is it possible to create a table view with scrolling option so that user can scroll through the list and then select the word which he wants.

  • 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-22T01:59:40+00:00Added an answer on May 22, 2026 at 1:59 am

    Yes it is possible. Take IBOutlet for UITableView and wire it up. Define its datasource and delegate to your controller. Implement UITableViewDelegate to your controller and override all the methods like cellForRowAtIndex and others.

    //FilterDataViewController.h
    #import <UIKit/UIKit.h>
    @interface FilterDataViewController : UIViewController <UITableViewDelegate>
    {
        IBOutlet UITableView *tblView;
        IBOutlet UITextField *txtFld;
    
        NSMutableArray *arrSrch;
        NSMutableArray *srchedData;
    }
    -(IBAction)srchBtnTapped:(id)sender;
    @end
    
    //FilterDataViewController.m
    #import "FilterDataViewController.h"
    @implementation FilterDataViewController
    
    -(IBAction)srchBtnTapped:(id)sender
    {
        if(![txtFld.text isEqualToString:@""])
        {
            [srchedData removeAllObjects];
            for (NSString *allStrings in arrSrch)
            {
                NSComparisonResult result = [allStrings compare:txtFld.text options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [txtFld.text length])];
                if (result == NSOrderedSame)
                {
                    [srchedData addObject:allStrings];
                }
            }
            [tblView reloadData];
        }
    }
    
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
        [super viewDidLoad];
    
        arrSrch = [[NSMutableArray alloc] initWithObjects:@"One",@"One Two",@"Two",@"Three",@"Four",@"One Five",@"Six",nil];
        srchedData = [[NSMutableArray alloc] init];
    }
    
    #pragma mark -
    #pragma mark Table view data source
    
    // Customize the number of sections in the table view.
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
        return 1;
    }
    
    
    // Customize the number of rows in the table view.
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return [srchedData count];
    }
    
    
    // Customize the appearance of table view cells.
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        static NSString *CellIdentifier = @"Cell";
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        }
    
        cell.textLabel.text = [srchedData objectAtIndex:indexPath.row];
        // Configure the cell.
    
        return cell;
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an app which will have a question in a UILabel and
I am creating console app, involving lots of services. I want to display a
I am currently creating a app in which i want to let the user
I am creating an app in which i am using a dictionary with quite
I am creating an app which requires internet. I want to use reachability class
I am creating a iPod app which will on multiple devices. For each user
I am creating a rails app which will help out businesses. These businesses have
I am creating a web app which uses jQuery to authenticate: $.ajax({ url: /session/create?format=json,
I am creating a system tray app which monitors mouse clicks in Windows. I
We are creating an app that uses modules which are dynamically loaded into 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.