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

The Archive Base Latest Questions

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

In my application I parsed the data through NSXMLParser and made separate class to

  • 0

In my application I parsed the data through NSXMLParser and made separate class to store that data from which i usually display the data. Everything works fine in simulator except the the title which is display in table cell with image. Images appears properly but the title not appear properly.

This is my code:-

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {

        [[NSBundle mainBundle] loadNibNamed:@"TableCell3" owner:self options:NULL];
        cell = nibLoadedCell;
    }
    NewsInfo *aNewsInfo = [appDelegate.newsArray objectAtIndex:indexPath.row];

    titleLabel.text = aNewsInfo.title;
    imageLabel.image = aNewsInfo.smallImageData;
    return cell;
}

and in this way i configured my TableCell3.xibTableCell3.xib

Now i want my title data in 2 rows in label of the TableCell3.
I already used both the way through xib attributes settings or through code.
Code which i used instead of this xib attributes settings are:-

titleLabel.lineBreakMode = UILineBreakModeWordWrap;
titleLabel.numberOfLines = 2;
titleLabel.text = aNewsInfo.title;

Now Can any one help me to figure out this prob i want to display my title in two rows of the table view cell.

Thanks in Advance.

My Data is showing in this way…![enter image description here][2]

So i want to display this title fully it show’s partially right now…
i want to display in two lines…

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

    My guess is that you need to enlarge the label height.

    Maybe the label height i not large enough to display 2 lines of text and that’s could be the reason that you see only 1 line.

    in interface builder try to enlarge the label height.

    and maybe i am wrong ?

    Good luck
    Shani

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

Sidebar

Related Questions

I have written a Ruby application which parses lots of data from sources in
I'm developing an iPhone application which uses a TableView to display XML data. The
I am trying to implement a Silverlight 2 client application that takes data from
I'm writing an application with an online mode, that is, data is downloaded, parsed
I am writing a cataloging application that parses through and extracts information from files
I have an iPhone application that pulls some JSON data from a server and
I have an application that receives data in binary form through Bluetooth. I read
My application makes use of the RijndaelManaged class to encrypt data. As a part
I have an application that reads from a COM Port and then does something
I'm currently working on redesigning an application which is building a model from input

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.