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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -