2

I'm currently writing an app that has a calendar as one of it's screens. For the calendar I need to place coloured circles under the numbers to represent activities on those days.

I was leaning towards the UIButton's for each day in the calendar so that I could assign the same functionality to all the buttons {including customised drawing routines to handle the coloured circles on each day).

Is it possible to draw coloured circles in on the fly or should I use pre-made images up to a certain number of events (coloured circles)?

Secondly, if I can draw these on the fly, can someone point out the documentation for the classes involved for me to do this?

jscs
  • 63,694
  • 13
  • 151
  • 195
bernieslearnings
  • 1,424
  • 4
  • 17
  • 27
  • Read: http://stackoverflow.com/questions/5385900/does-the-ios-sdk-give-access-to-the-calendar-picker-used-by-iphones-built-in-ca – Raptor Jan 02 '13 at 04:10
  • 2
    Thanks for the quick response. Most of these links involve using the built in calendars or other custom libraries for creating calendars which is good but doesn't fit what I'm trying to achieve. I'm ok with calculating what I need to display, I just need to know how to do the customised drawing on each day number in a month view calendar. – bernieslearnings Jan 02 '13 at 04:26

1 Answers1

1

What I think you are looking for is (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect.

The documentation for the class can be found at UIBezierPath Class Reference

Devin Stewart
  • 3,006
  • 1
  • 16
  • 22