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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:16:11+00:00 2026-06-12T19:16:11+00:00

I am trying to parse text with images in the UITableView and I can

  • 0

I am trying to parse text with images in the UITableView and I can only see the text for every line but I can’t see the images.

Here is my code;

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

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [self.anaTablo dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}


    UILabel *textBaslik = (UILabel *) [cell viewWithTag:3];
    UIImage *imagePic = (UIImage *) [cell viewWithTag:7];

    textBaslik.text =[titleArray objectAtIndex:indexPath.row];
    imagePic.images = [imageArray objectAtIndex:indexPath.row];

return cell;

}

but it didn’t works and after searching I have tried this to;

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

    UILabel *textBaslik = (UILabel *) [cell viewWithTag:3];
    UIImage *imagePic = (UIImage *) [cell viewWithTag:7];

    textBaslik.text =[titleArray objectAtIndex:indexPath.row]; 

    NSString *str1 = [[NSString alloc] initWithFormat:@"%@", imageArray];

    NSData *bgImageData = [NSData dataWithContentsOfFile:str1];

    UIImage *img1 = [UIImage imageWithData:bgImageData];

    imagePic = [img1 objectAtIndex:indexPath.row];

return cell

}

Am I doing something wrong? I am kind new to Xcode

Thanks from now.

  • 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-12T19:16:13+00:00Added an answer on June 12, 2026 at 7:16 pm

    I check you code and i change the following

    NSString *str1 = [[NSString alloc] initWithFormat:@"%@", imageArray];
    NSData *bgImageData = [NSData dataWithContentsOfFile:str1];
    UIImage *img1 = [UIImage imageWithData:bgImageData];
    
    imagePic = [imageArray objectAtIndex:indexPath.row];
    
    cell.imageView.image=imagePic;
    

    in the delegate method

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

    Now a new error appear, check it

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

Sidebar

Related Questions

I'm trying to parse text-based file attachments (txt, doc, etc...). However, I can't seem
I'm trying to parse and read a text file in Windows Phone 7. Here
I'm trying to parse a text file using parser combinators. I want to capture
I am trying to parse some text and diagram it, like you would a
I am trying to parse following text in variable... $str = 3,283,518(10,569 / 2,173)
I'm trying to parse some Text with parsec: data Cmd = LoginCmd String |
Trying to parse an HTML document and extract some elements (any links to text
I'm trying to parse some UTF-8 encoded html text that contains the left and
I have a string: [\n['-','some text what\rcontains\nnewlines'],\n\n trying to parse: Regex.Split(@[\n['-','some text what contains
I'm working on a 1 Gigabyte JSON text file which I'm trying to parse

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.