iOS_User iOS_User - 6 months ago 27
Objective-C Question

set label border in iphone

How can I set label's border which is dynamically generated (Not from Interface Builder)?

Answer

you can do it by

Label.layer.borderColor = [UIColor whiteColor].CGColor;
Label.layer.borderWidth = 4.0;

before this you need to import a framework QuartzCore/QuartzCore.h