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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:07:00+00:00 2026-06-16T20:07:00+00:00

In my app, i have a table view and every row/cell has an imageView

  • 0

In my app, i have a table view and every row/cell has an imageView already on it. Each imageView already has its image assigned to it, each imageView’s .hidden property is set to YES until otherwise specified by the user. My question is: How can i test to see if any images are hidden/not hidden. If 1 cell has a visible image, i want to Call a method. And if all the images are gone i want to fire a different method, Any ideas?

I was trying something along the lines of:

if ([self.hand.showBadge boolValue] == YES) {
    self.handView.hidden = YES;
}
else{
    self.handView.hidden = NO;
}

But unfortunately it didnt work.

Thank you!

  • 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-16T20:07:01+00:00Added an answer on June 16, 2026 at 8:07 pm

    One way could be to tag the imageView w/in the cell and then use that tag to iterate over the cells as needed.

    Within tableView:cellForRowAtIndexPath, add:

    myImageView.tag = MY_CELL_IMAGEVIEW_TAG;
    

    Alternatively, you could just set the tag for your image view in a prototype cell (or your static cells), if using storyboards.

    Then, if you wanted to check the visible cells, insert the following code where you’d like to check the image views.

    BOOL cellImageViewsAreHidden = YES;
    
    for (UITableViewCell *cell in self.tableView.visibleCells) {
      UIImageView *cellImageView = [cell viewWithTag:MY_CELL_IMAGEVIEW_TAG];
      if ([cellImageView isHidden] == NO) {
        cellImageViewsAreHidden = NO;
        break;
      }  
    }
    
    (cellImageViewsAreHidden) ? 'method for all hidden' : 'method for not all hidden' ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone app which has a Table View-based data input screen with
In my app I have a scroll view and four table views. Each time
in my app i have an UITableView with 120 rows and every row has
In my iPhone app I have a table view where I add a tick
I have an app that presents Table View of different files. I have it
I have a working table view on my iphone app, and am implementing a
I have a categories table view controller. In my app, categories can have subcategories.
I am building an app using storyboard. I have added a table view to
My app is for expenses in every month, I have table with name Expense
Hi i'm working on project that have a table view with 10 controllers every

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.