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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:55:15+00:00 2026-05-25T22:55:15+00:00

My name is NipinVarma,I would want to know about some errors in my iphone

  • 0

My name is NipinVarma,I would want to know about some errors in my iphone application.I am doing a bible application for a client,i almost complete the functionality s of the application,like authentication ,UI etc etc.sqlite is used for the database of the bible,i want to display the bible sql database in a textview.But i already done this with a tableview controller,every verses and genisis are displayed in tableview according to my needs through array count.My need is to display this in a textview when we open that page for reading bible.here i put my code that gives me the correct input in tableview.

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    BibleIphoneAppDelegate *appDelegate = (BibleIphoneAppDelegate *)[[UIApplication sharedApplication] delegate];
    return appDelegate.biblearray.count;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];

    }
    cell.detailTextLabel.lineBreakMode = UILineBreakModeWordWrap;
    cell.detailTextLabel.numberOfLines = 0;
    cell.detailTextLabel.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:12.0];
    // Set up the cell
    tbl.separatorColor = [UIColor clearColor];
    BibleIphoneAppDelegate *appDelegate = (BibleIphoneAppDelegate *)[[UIApplication sharedApplication] delegate];
    bible *jesus = (bible *)[appDelegate.biblearray objectAtIndex:indexPath.row];

    [cell setText:jesus.chapterNo];
    cell.detailTextLabel.text = jesus.verseNumber;
    cell.font = [UIFont systemFontOfSize:9.0];
    return cell;

Please help me to do this.
Thanks in advance.

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

    Use didSelectRowAtIndexPath of UITableViewDelegate:

    -(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath {
        NSInteger row = [indexPath row];
        [self pushChildViewControllerForRow:row animated:YES];
    }
    

    Then in pushChildViewControllerForRow you can do something like:

    -(void)pushChildViewControllerForRow:(NSUInteger)row animated:(BOOL)flag {
         if (chapterViewController==nil) {
                self.chapterViewController = [[ChapterViewController alloc] initWithNibName:@"ChapterViewController" bundle:nil];
            [navigationController pushViewController:chapterViewController animated:flag];
            // and here you will need to populate chapterViewController with data extracted from your sqlite database
    }
    

    ChapterViewController might be similar to:

    @interface ChapterViewController : UIViewController <UITextViewDelegate> {
        IBOutlet UITextView *textView;
    }
    @property (nonatomic, retain) UITextView *textView;
    -(void)backButtonPressed:(id)sender;
    @end
    

    Hope you got an idea.

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

Sidebar

Related Questions

Name: <%= Html.TextBox(txtName, 20, new { @class = hello }) %> I want that
The name pretty much says it all. Does anyone know how to accomplish functional
select name, lat, lng from locations limit 10 What if I want a specific
my name is aderson and in this moment i have something question about composition
name says it all, but I want to be able to position an element
[SOLVED] Name of action turned out to be case sensitive I want to do
Name of the option tells something but what Visual Studio/compiler really do and what
Name the design considerations in deciding between use of a singleton versus a static
when name spacing models. should the containing folder's name be in plural form? i.e.
The name of a temporary table such as #t1 can be determined using select

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.