34 lines
860 B
Objective-C
34 lines
860 B
Objective-C
//
|
|
// TLScannerButton.h
|
|
// TLChat
|
|
//
|
|
// Created by 李伯坤 on 16/2/25.
|
|
// Copyright © 2016年 李伯坤. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
typedef NS_ENUM(NSUInteger, TLScannerType) {
|
|
TLScannerTypeQR = 1, // 扫一扫 - 二维码
|
|
TLScannerTypeCover, // 扫一扫 - 封面
|
|
TLScannerTypeStreet, // 扫一扫 - 街景
|
|
TLScannerTypeTranslate, // 扫一扫 - 翻译
|
|
};
|
|
|
|
|
|
@interface TLScannerButton : UIButton
|
|
|
|
@property (nonatomic, strong) NSString *title;
|
|
|
|
@property (nonatomic, strong) NSString *iconPath;
|
|
|
|
@property (nonatomic, strong) NSString *iconHLPath;
|
|
|
|
@property (nonatomic, assign) TLScannerType type;
|
|
|
|
@property (nonatomic, assign) NSUInteger msgNumber;
|
|
|
|
- (id)initWithType:(TLScannerType)type title:(NSString *)title iconPath:(NSString *)iconPath iconHLPath:(NSString *)iconHLPath;
|
|
|
|
@end
|