bernieslearnings
bernieslearnings

Reputation: 1654

Drawing on UIButtons

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?

Upvotes: 2

Views: 85

Answers (1)

Devin Stewart
Devin Stewart

Reputation: 3036

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

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

Upvotes: 1

Related Questions