Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>use bellow method instead of - DrawTileInRect for multiple color in one month , check date </p> <pre><code>- (void) drawTileInRect:(CGRect)r day:(int)day mark:(BOOL)mark font:(UIFont*)f1 font2:(UIFont*)f2 sysFlag:(int)sysFlg userEventFlg:(int)userEventFlag diaryFlg:(int)diaryFlag momentsFlg:(int)momentsFlag {         @try {                  NSString *str = [NSString stringWithFormat:@"%d",day];         [str retain];                           r.size.height -= 2;         [str drawInRect: r                withFont: f1           lineBreakMode: UILineBreakModeWordWrap               alignment: UITextAlignmentCenter];                  r.size.height = 10;         r.origin.y += 18;                  CGRect y=CGRectMake(r.origin.x+5, r.origin.y-25, 12, 12);//5 5                           CGRect rect1=CGRectMake(r.origin.x, r.origin.y+7, 12, 12);         CGRect rect2=CGRectMake(rect1.origin.x+18, r.origin.y+7, 12, 12);         CGRect rect3=CGRectMake(rect2.origin.x+16, r.origin.y+7, 12, 12);                  if(sysFlg==1)         {             [[UIImage imageNamed:@"Blue_dot.png"] drawInRect:y];         }                  if(userEventFlag==1)//1.png         {             [[UIImage imageNamed:@"Yellow_dot.png"] drawInRect:rect1];         }                          if(momentsFlag==1)//3.png         {             [[UIImage imageNamed:@"Red_dot.png"] drawInRect:rect3];         }              }     @catch (NSException * e) {         NSLog(@"Exception: %@", e);     } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload