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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:56:57+00:00 2026-06-07T01:56:57+00:00

For a particular controller class, I need to draw a grid (the grid refers

  • 0

For a particular controller class, I need to draw a grid (the grid refers to a daily schedule, which changes each day, sometimes each hour.). Some time later, upon an action by the user, I need to fill that grid with updated schedule data that I did not have when I was doing the original grid.

My question is: since I don’t know the selected day at the time the viewDidLoad, does this mean I have to re-draw the entire grid again, along with the new daily schedule data? (that’s the only way I can think of to get everything drawn in the drawRect) Or can I call a method outside of drawRect to draw the daily schedule? or is there another, better way of doing this?

  • 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-07T01:56:58+00:00Added an answer on June 7, 2026 at 1:56 am

    You don’t specify whether this is iOS or Mac, which might very marginally affect what assumptions you are able to make about this. But in general a view’s drawRect method should at least redraw everything within the supplied rectangle (the clue is in the method name). And, broadly speaking, that is the place to manage such drawing, though of course you can break the code up into other methods for clarity and organisation.

    Unless your grid is incredibly dense, it is unlikely that this redraw will have noticeable impact on performance. Failing to redraw needed content in actually dirty regions would be a much worse situation.

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

Sidebar

Related Questions

Given a particular URL, how do I find out for sure which controller action
I have a site in Zend Framework. I want to hide one particular controller
In my controller i had given [ValidateInput(false)] for that particular Action in my return
Is there any other command for redirecting a controller to a particular view page
For some reason the conventional path names for a particular controller are not working?
I have an ASP.NET MVC 3 (Razor) Web Application, with a particular page which
I'm using CodeIgniter and I my controller filenames and class names are named as
In particular, is this possible with Javascript? >> Version 1.2.3.4.match(/\S+ (\d+)(\.\d+)*/) [Version 1.2.3.4, 1,
My particular scenario involves doing some text transformation using regular expressions within a private
In particular, I am adding a compass to my app. I want to place

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.