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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:35:40+00:00 2026-05-27T11:35:40+00:00

I have an reader application which have a night mode view,that is if the

  • 0

I have an reader application which have a night mode view,that is if the user tap the UISwitch button to on it turns out the background of the tableview ,text label.text and a label called chapetrandverse to black every thing works perfect,but the bug is when i tap the UIswitch to on ,the background doesn’t changes first ,we have to scroll the tableview to activate this effect.there is a black image in the background f the tableview .my code is

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

        static NSString *CellIdentifier = @"Cell";

        readCell *cell = (readCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) 
        {
            NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"readCell" owner:self options:nil]; 
            cell = [nib objectAtIndex:0]; 

            if (imagedarkbackground.hidden == NO) 
            {

                  cell.chapterAndVerse.backgroundColor= [UIColor clearColor];
                  cell.chapterAndVerse.textColor = [UIColor whiteColor];
                  cell.textLabel.textColor = [UIColor whiteColor];
                  cell.textLabel.highlightedTextColor = [UIColor whiteColor];
                  //cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:16];
            }
            else if (imagedarkbackground.hidden == YES)
            {
                  cell.chapterAndVerse.backgroundColor= [UIColor whiteColor];
                  cell.chapterAndVerse.textColor = [UIColor brownColor];
                  cell.textLabel.textColor = [UIColor darkGrayColor];
                  cell.textLabel.highlightedTextColor = [UIColor darkGrayColor];
            }

Is there any issue in my code?why i want to scroll to change the lowlight effect? .
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-27T11:35:40+00:00Added an answer on May 27, 2026 at 11:35 am

    cellForRowAtIndexPath only gets called when the cells are scrolled into view. You will need to have the tableView reload or refresh the cells that are visible. Check the documentation for more details.

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

Sidebar

Related Questions

Ha ii ,i am doing a reader application which have chapters in it,i have
Its an application that is calling the ZXing barcode reader on button push, after
I have made one application in which I implemented ePub reader which unzips file
I have a PHP Yii application that uses an RSS feed reader. I wanted
I am doing a reader application in iPhone which have a loginpage the login
I'm sure some of you noticed that if you have Acrobat Reader ( or
I have a .net application which runs in the region of 20 to 30
I have a Web Application in which I am using asp:FileUpload Control to upload
Imagine that I have a C# application that edits text files. The technique employed
I have a Django application in which I need to implement a simple trending/ranking

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.