1 Star 2 Fork 2

TKkk/WeChatPlugin-iOS

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zhIconLabel.h 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
lanjuzi 提交于 2017-09-22 18:26 +08:00 . 增加游戏作弊功能
//
// zhIconLabel.h
// zhPopupControllerDemo
//
// Created by zhanghao on 2016/9/26.
// Copyright © 2017年 zhanghao. All rights reserved.
//
#import <UIKit/UIKit.h>
@class zhIconLabelModel;
@interface zhIconLabel : UIControl
@property (nonatomic, strong, readonly) UIImageView *iconView;
@property (nonatomic, strong, readonly) UILabel *textLabel;
// UIEdgeInsets insets = {top, left, bottom, right}
@property (nonatomic, assign) UIEdgeInsets imageEdgeInsets; // default = UIEdgeInsetsZero 使用insets.bottom或insets.right来调整间距
@property (nonatomic, assign) BOOL horizontalLayout; // default is NO.
@property (nonatomic, assign) BOOL autoresizingFlexibleSize; // default is NO. 根据内容适应自身高度
@property (nonatomic, assign) CGFloat sizeLimit; // textLabel根据文本计算size时,如果纵向布局则限高,横向布局则限宽
@property (nonatomic, strong) zhIconLabelModel *model;
- (void)updateLayoutBySize:(CGSize)size finished:(void (^)(zhIconLabel *item))finished; // 属性赋值后需更新布局
@end
@interface zhIconLabelModel : NSObject
@property (nonatomic, strong) UIImage *icon;
@property (nonatomic, strong) NSString *text;
+ (instancetype)modelWithTitle:(NSString *)title image:(UIImage *)image;
@end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/TKkk-iOSer/WeChatPlugin-iOS.git
git@gitee.com:TKkk-iOSer/WeChatPlugin-iOS.git
TKkk-iOSer
WeChatPlugin-iOS
WeChatPlugin-iOS
master

搜索帮助