給label繪製下劃線

UIlabel自己沒有下劃線的屬性,使用繪製的方法,添加下滑下,而且賦給該label一個action做爲響應方法,實現DIY超連接的效果。html //調用app #import "UnderLineLabel.h" UnderLineLabel *label = [[UnderLineLabel alloc] initWithFrame:CGRectMake(50, 200, 300, 30)
相關文章
相關標籤/搜索