0

I have some numbers written with drawinRect . But the numbers seems to be pixelated. How to smoothen its edges?

Pixelated dates

The code used for this is:

   [date drawInRect:CGRectMake(targetX+2, targetY+10, kVRGCalendarViewDayWidth, kVRGCalendarViewDayHeight) withFont:[UIFont fontWithName:@"HelveticaNeue-Bold" size:10] lineBreakMode:NSLineBreakByWordWrapping alignment:NSTextAlignmentCenter];
Desdenova
  • 5,326
  • 8
  • 37
  • 45
Daniella D'Cruz
  • 388
  • 1
  • 3
  • 15
  • please provide more code its not enough to find the problem – Anshad Rasheed Nov 06 '15 at 06:58
  • This might have been answered here (by NSZombie): http://stackoverflow.com/questions/8065892/blurry-uilabel-when-added-programatically "The frame is using float numbers". Try adding `setFrame:CGRectIntegral`to your frame – hmrc87 Nov 06 '15 at 07:04
  • Sometimes drawing can appear fuzzy on the simulator, but looks great on a device; try it out on a device and see if it looks okay – Alex Nov 06 '15 at 13:48

0 Answers0