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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:01:14+00:00 2026-06-01T03:01:14+00:00

I am doing an iPad application. MY UIView will be as follows. there will

  • 0

I am doing an iPad application. MY UIView will be as follows. there will be 2 UITabelview,
UITabelview and UIButton were tables are connected to the SQLite. the tough task is i want to select a row in each table and provide the related data in UITextview by using a UIButton (which is a search button).

Can any one suggest me to start a code or provide me any example.

  • 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-01T03:01:16+00:00Added an answer on June 1, 2026 at 3:01 am

    for UIPickerView with two component refer following link http://www.iphonetut.com/iphone_apps_-_interface_builder/86/uipickerview_with_two_component_example

    this is the perfect answer for your query you need to just add your SQL functionality in button press event

    -(IBAction)buttonPressed
    {
        NSString *msg = [NSString stringWithFormat: @"I am feeling %@ for the activity %@",
                        [names objectAtIndex:[pickerView selectedRowInComponent:0]],
                        [age objectAtIndex:[pickerView selectedRowInComponent:1]]];
    
        NSLog(@"%@,%@",[nameArray objectAtIndex:[pickerView selectedRowInComponent:0]],[ageArray objectAtIndex:[pickerView selectedRowInComponent:1]]);
    
        sqlite3 *database;
        NSMutableArray *Favorite=[[NSMutableArray alloc] init];
        if(sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK) { 
            NSLog(@"Open");
            NSString *sql=[NSString stringWithFormat:@"SELECT * FROM thirdTable WHERE name='%@' AND age='%@'", [nameArray objectAtIndex:[pickerView selectedRowInComponent:0]], [ageArray objectAtIndex:[pickerView selectedRowInComponent:1]]];
            NSLog(@"sqlTm p %@", sqlTmp);
            const char *sqlStmt=[sqlTmp UTF8String]; 
            sqlite3_stmt *cmp_sqlStmt; 
            if(sqlite3_prepare_v2(database, sqlStmt, -1, &cmp_sqlStmt, NULL) == SQLITE_OK) {
                 NSLog(@"prepare stmt ");
                 while(sqlite3_step(cmp_sqlStmt)==SQLITE_ROW) { 
    
                 NSString *a1=[NSString stringWithUTF8String:(char *)sqlite3_column_text(cmp_sqlStmt, 0)];
                 NSMutableDictionary *Question=[NSDictionary dictionaryWithObjectsAndKeys:
                                               a1,@"detail",nil];
                 [Favorite addObject:Question];
            }
        }
        sqlite3_finalize(cmp_sqlStmt);
    
    sqlite3_close(database);
    
        if(Favourite.count >0){
          textView.text = [NSString stringWithFormat:@"%@", [Favorite objectAtImadex:0]];
        }
    [Favorite release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing an iPad app, were i will have UITabelview and a Button
I am working on a universal app, I used UISplitViewController in doing iPad application.
We have an application that support iAds. Apparently iOs 4.2 for iPad will support
I'm doing my very first application for iPad. My problem is I'm having 1024*768
I'm developing an application for iPad. I want to access a text file inside
I'm trying to add a UIButton to UITabBar in my iPad application with following
I am making application for iPad, only landscape mode will be supported. I am
I've created a ipad application and now I'm doing some test with Instruments to
i made iPad application, i want to fetch data from this url, http://ipad.idealake.com/stockquote.aspx?id=SBIN and
I am doing an iPad imaging app and I am considering UIPopoverController as my

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.