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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:27:44+00:00 2026-05-30T02:27:44+00:00

I have a TableView, when I click on a cell it pushes my class

  • 0

I have a TableView, when I click on a cell it pushes my class ImageViewController and displays an image. This is working great. The viewDidLoad method is here.

- (void)viewDidLoad
{
    NSLog(@"ImageViewController Load");    
    NSLog(@"Image String: %@",imageString);
    self.view.contentMode=UIViewContentModeCenter;
    UIImage *im = [UIImage imageNamed:imageString];

    if(im == nil){

        NSLog(@"Image is NULL");
    }

    [image setImage:im];
    self.title = @"View Image";
    [super viewDidLoad];
}

imageString is defined as an NSString in the .h file. I’m using a StoryBoard and launch my ImageViewController by:

ImageViewController *imageViewController = [segue destinationViewController];
    imageViewController.imageString = [[listData objectAtIndex:selectedIndex]objectForKey:@"image"];

I’m experience problems (the screen is black) when I try and view an image when clicking on a link within a UIWebView. Basically here the UIWebView contains all my content and I’d like to view an image when cliking on a link.

To achieve this I’m using the following method:

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{

And launch the ImageViewController using the following javascript

window.location.href="eft://?type=image&path=Google.jpg";

Within the shouldStartLoadingWithRequest method I push the ImageViewController using the following:

 ImageViewController *imageViewController =[[ImageViewController alloc]init];
        imageViewController.imageString = path;
        [self.navigationController pushViewController:imageViewController animated:YES];

The image isn’t null as I perform a check and the path and type fields are correct but the screen is black. Rather than rely on the path and type fields I manually set these fields in the ImageViewController (for exmaple google.jpg) and it still shows a black screen when loading the controller from the UIWebView. If I load it from the table view it works perfectly???

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-30T02:27:46+00:00Added an answer on May 30, 2026 at 2:27 am

    I’ve found the answer, i need to init with storyboard reference

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

Sidebar

Related Questions

Ha ii everybody i have a tableview ,when i click the cell it popups
I have a very weird bug here, this is the scenario; -I click on
I have this code, which resizes the tableview when I click a textfield inside
I currently have a button defined in a cell and a method to track
I have a TableView who display the name of some Categories by executing this
I have a large data to be displayed in Tableview cell can anybody tell
i have viewcontroller with table view that when i click on a cell i
How can I show an uiactivityindicator when I click a cell in my tableview
I have a main table view and a detail view. when i click cell
I have a tableview with each cell loaded from a xib. It is in

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.