Ios4 如何向OHAttributedLabel添加边框

Ios4 如何向OHAttributedLabel添加边框,ios4,Ios4,我正在使用AliSoftware中的OHAttributedLabel将用户定义的超链接添加到我的UILabel。我需要能够在OHAttributedLabel项目周围添加边框。有人能给我一些代码示例来说明如何做到这一点吗。常规的myLabel.layer.bordercolor对这些不起作用。对于添加边框,您可以使用QuartzCore框架。 导入该框架并使用以下代码 [[typeTableView layer]setBorderColor:[UIColor whiteColor].CGCol

我正在使用AliSoftware中的OHAttributedLabel将用户定义的超链接添加到我的UILabel。我需要能够在OHAttributedLabel项目周围添加边框。有人能给我一些代码示例来说明如何做到这一点吗。常规的myLabel.layer.bordercolor对这些不起作用。

对于添加边框,您可以使用QuartzCore框架。 导入该框架并使用以下代码

[[typeTableView layer]setBorderColor:[UIColor whiteColor].CGColor];
    [[typeTableView layer]setCornerRadius:7.0f];
    [[typeTableView layer]setBorderWidth:3];
    [[typeTableView layer]setMasksToBounds:YES];
这就是你可以给出边界的方式,你可以给出它的半径,宽度等等。 首先添加石英核心框架 谢谢