//
// HYBHyperlinkLabel.h
// CloudShopping
//
// Created by sixiaobo on 14-7-10.
// Copyright (c) 2014年 com.Uni2uni. All rights reserved.
//
#import <UIKit/UIKit.h>
/*!
* @brief 定制超链接标签,也就是上面是文字,下面是一条横线,可以指定颜色值,默认是蓝色,
* 下划线会处在文字的正下方,宽度会根据文字自动调整,字体大小默认是13号字
* @note 仅适用于单行超链接
* @author huangyibiao
*/
@interface HYBHyperlinkLabel : UIView
@property (nonatomic, strong) UIColor *textColor; // 文本颜色,默认是[UIColor blueColor]
@property (nonatomic, strong) UIColor *underlineColor; // 下划线颜色,默认是[UIColor blueColor]
- (id)initWithFrame:(CGRect)frame text:(NSString *)text;
- (id)initWithFrame:(CGRect)frame text:(NSString *)text font:(UIFont *)font;
- (id)initWithFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor *)textColor;
- (id)initWithFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor *)textColor font:(UIFont *)font;
- (id)init
给label添加超链接等处理
最新推荐文章于 2023-10-25 10:48:00 发布
本文详细介绍了如何在HTML中为label元素添加超链接,包括使用a标签包裹label,以及设置href属性实现点击label触发链接跳转。同时讨论了这种方法在表单交互中的应用场景和可能的注意事项。
摘要由CSDN通过智能技术生成