I have an array of UILabels inside the contentView of a custom UITableViewCell. The font of each label is sized by ranking to form a tag cloud. In the method that sets up the cell (row), I iterate through the word objects that will fit on that line, setting up the frame for each UILabel as follows:
CGRect theFrame = CGRectMake(xPosAdjuster,
theWordRow.rowHeight - thisWord.lblHeight,
thisWord.lblWidth,
thisWord.lblHeight);
UILabel *myLabel = [[UILabel alloc] initWithFrame:theFrame];
这使贴上标签的框架(见下图),但不幸的是,贴上标签是按体大小发挥作用的。
是否有任何办法消除在统一分类标签制度上(边界)的婚礼和(或)准确计算,以便我能够相应地调整其范围。
增 编