BMXMessageAttachment Class Reference

Inherits from NSObject
Declared in BMXMessageAttachment.h

Overview

消息附件

Properties

size

@property (nonatomic) CGSize size

Instance Methods

init

- (instancetype)init

Example:

- (void)p_configSubview {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"about" ofType:@"png"];
    UIImage *image = [UIImage imageWithContentsOfFile:path];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(MAXScreenW / 2.0 - 200.0 / 2.0, 150, 200.0, 100.0)];
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    imageView.image = image;
    [self.view addSubview:imageView];
    
    
    
    UILabel *label1 = [[UILabel alloc] init];
- (void)p_configSubview {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"about" ofType:@"png"];
    UIImage *image = [UIImage imageWithContentsOfFile:path];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(MAXScreenW / 2.0 - 200.0 / 2.0, 150, 200.0, 100.0)];
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    imageView.image = image;
    [self.view addSubview:imageView];
    
    
    
    UILabel *label1 = [[UILabel alloc] init];
    label1.textAlignment = NSTextAlignmentCenter;
    label1.font = [UIFont systemFontOfSize:14];
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    label1.text = [NSString stringWithFormat:NSLocalizedString(@"Maximtop_IM__v", @"蓝莺IM v%@"), app_Version];
    [self.view addSubview:label1];

    
    UILabel *label2 = [[UILabel alloc] init];
UILabel *label2 = [[UILabel alloc] init];
BMXSDKConfig *config = [[BMXClient sharedClient] sdkConfig];
NSString *SDK_Version = config.sdkVersion;

label2.text = [NSString stringWithFormat:@"Floo/SDK  v%@", SDK_Version];
label2.textAlignment = NSTextAlignmentCenter;
label2.font = [UIFont systemFontOfSize:14];
[self.view addSubview:label2];
    
    
UILabel *label3 = [[UILabel alloc] init];
[self.view addSubview:label2];
    
    
UILabel *label3 = [[UILabel alloc] init];
label3.text = NSLocalizedString(@"One-Click_Multi-Cloud_Architecture", @"专业SDK,私有云按月付费");
label3.textAlignment = NSTextAlignmentCenter;
label3.numberOfLines = 0;
label3.font = [UIFont systemFontOfSize:16];
[self.view addSubview:label3];
    
UILabel *label5 = [[UILabel alloc] init];
label5.text = NSLocalizedString(@"Official_Website", @"官网 https://www.lanyingim.com");
label5.textAlignment = NSTextAlignmentCenter;
label5.numberOfLines = 0;
label5.font = [UIFont systemFontOfSize:15];
[self.view addSubview:label5];
    
label5.userInteractionEnabled = YES;
UITapGestureRecognizer *urlTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(openUrl)];
[label5 addGestureRecognizer:urlTap];

UILabel *label7 = [[UILabel alloc] init];
label7.text = NSLocalizedString(@"Contact_business", @"联系商务 400-666-0162");
label7.textAlignment = NSTextAlignmentCenter;
label7.numberOfLines = 0;
label7.font = [UIFont systemFontOfSize:15];
[self.view addSubview:label7];
    
label7.userInteractionEnabled = YES;
UITapGestureRecognizer *phoneTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(callAction)];
[label7 addGestureRecognizer:phoneTap];
    
UILabel *bottom_label= [[UILabel alloc] init];
- (UILabel *)titleLabel {
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] init];
- (UILabel *)subtitleLabel {
    if (_subtitleLabel == nil) {
        _subtitleLabel = [[UILabel alloc] init];

© 2019-2022 美信拓扑 | 官网 该文件修订时间: 2022-09-21 11:43:07

results matching ""

    No results matching ""