Original articles, welcome reprint. Reprint Please specify: Sanayu's Blog
Address: http://blog.csdn.net/u013357243
Problem
It's the effect I'm going to make.
However, after I have written the code, the set number label's layer fillet is like this
Collapse..
Solve
Baidu after know the solution, the original less a line of code
Cell. Textlabel. Text= @"Check for Updates";UILabel *label = [[UILabel alloc]initwithframe:cgrectmake (Nyscreenw-145,9, the, -)];Label. Layer. Cornerradius= -;Label. BackgroundColor= [Uicolor Graycolor];Label. Clipstobounds= YES;Label. Text= @"version number: 2.2.22";[Cell Addsubview:label];
There was no label.clipsToBounds = YES; such line of code before,
Of course, in addition to setting Masktobounds = yes, you can also set clipstobounds = yes.
Cat learns iOS Uilabel setting fillet not successful regulatory changes