draw line over uilable after loading from nib

Posted by Nnp on Stack Overflow See other posts from Stack Overflow or by Nnp
Published on 2010-03-30T20:09:35Z Indexed on 2010/03/30 20:13 UTC
Read the original article Hit count: 482

Filed under:
|
|
|

here is my code

CGContextRef c = UIGraphicsGetCurrentContext();
CGContextBeginPath(c);
CGContextMoveToPoint(c, 277.0f, 21.0f);
CGFloat newpoint = 277.0f + (CGFloat)(self.msrp.text.length * 8);
//NSLog(@"%f", newpoint);
CGContextAddLineToPoint(c, newpoint, 21.0f);
CGContextStrokePath(c);

i am trying to draw a line over UIlabel, i am loading my view from nib.i dont know what i am doing wrong. i just work fine if i draw entire view instead loading from nib.(but i dont wanna do that)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uilabel