Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar Month Grid: Custom image support #172

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Jul 11, 2012

  1. made the monthYear ivar available as a property to make customisation…

    … of it possible without subclassing
    
    e.g. change text alignment, etc
    robelkin committed Jul 11, 2012
    Copy the full SHA
    dfa148f View commit details
    Browse the repository at this point in the history
  2. added delegate method definitions to get images and image views to cu…

    …stomise images for the control
    robelkin committed Jul 11, 2012
    Copy the full SHA
    650f728 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    fa934d4 View commit details
    Browse the repository at this point in the history
  4. defined the delegate property on the month tiles object, and the opti…

    …onal methods that make up the delegate
    robelkin committed Jul 11, 2012
    Copy the full SHA
    6f34c70 View commit details
    Browse the repository at this point in the history
  5. moved the setup of the selected image view to the draw rect, so that …

    …the call to self.currentDay would be able to use the delegate
    robelkin committed Jul 11, 2012
    Copy the full SHA
    2ade497 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    3d2c2c9 View commit details
    Browse the repository at this point in the history
  7. replace all calls to hard coded image paths with calls to the delegat…

    …e, which in this case will be the owning month view
    robelkin committed Jul 11, 2012
    Copy the full SHA
    c298441 View commit details
    Browse the repository at this point in the history
  8. implement the TKCalendarMonthTilesDelegate methods to check if the mo…

    …nth view delegate is providing images, or if not we should just provide them ourselves.
    robelkin committed Jul 11, 2012
    Copy the full SHA
    ec55c70 View commit details
    Browse the repository at this point in the history
  9. make sure that the tiles always have the delegate set to the month view

    Bit dodgy, might need to think about this whole sub delegate pattern
    robelkin committed Jul 11, 2012
    Copy the full SHA
    0eb4713 View commit details
    Browse the repository at this point in the history
  10. moved all the generation of the views/subview adding to the drawrect,…

    … so it only happens when it has to, and so we have a chance to set the delegate method to override images
    robelkin committed Jul 11, 2012
    Copy the full SHA
    cb595e8 View commit details
    Browse the repository at this point in the history
  11. check if the delegate exists and if we are getting an image back from…

    … it, if we are then use it for our images, fall back to the bundle images
    robelkin committed Jul 11, 2012
    Copy the full SHA
    0153b72 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    dbcf5e1 View commit details
    Browse the repository at this point in the history