IOS Difference Between uiview and uilabel for drawing -
so have weird problem when im trying draw in custom class has subclass of uiview lines thick , fuzzy when change subclass uilabel looks smooth , thin. curious there different default settings enabled occur , if ?
cant post screens yet
thanks in advance
update: relevent code note no changes being made between changing of subclass
cgcontextref ctx = uigraphicsgetcurrentcontext(); // cgcontextsetallowsantialiasing(ctx, yes); // cgcontextsetshouldantialias(ctx,yes); // cgcontextsetinterpolationquality(ctx, kcginterpolationhigh); cgcontextsetstrokecolorwithcolor(ctx, [uicolor blackcolor].cgcolor); cgcontextsetshadow(ctx, cgsizemake(0, 3), 2); cgcontextbeginpath(ctx); cgcontextmovetopoint(ctx, 1, 0); cgcontextaddcurvetopoint(ctx, 5, self.frame.size.height - 10, 15, self.frame.size.height - 1, 30, self.frame.size.height - 1); cgcontextaddlinetopoint(ctx, self.frame.size.width - 30, self.frame.size.height - 1); cgcontextaddcurvetopoint(ctx, self.frame.size.width - 15, self.frame.size.height - 1, self.frame.size.width - 5, self.frame.size.height - 10, self.frame.size.width - 1, 0); [appdel.stylechangercontroller.roomhightlightcolor setfill]; cgcontextdrawpath(ctx, kcgpathfillstroke); [super drawrect: rect];
Comments
Post a Comment