zoukankan      html  css  js  c++  java
  • uibutton设置

    UIButton *selectMore = [UIButton buttonWithType:UIButtonTypeCustom];
                selectMore.frame = CGRectMake(0, __kScreenHeight - 42, __kScreenWidth / 2, 42);
               // UIButton *selectMore = [[UIButton alloc] initWithFrame:CGRectMake(0, __kScreenHeight - 42, __kScreenWidth / 2, 42)];
                NSString *filePath = [[NSBundle mainBundle] pathForResource:@"selectMore" ofType:@"png"];
               // [selectMore setBackgroundImage:[UIImage imageWithContentsOfFile:filePath] forState:UIControlStateNormal];
                [selectMore setBackgroundColor:__kColorWithRGB(240, 241, 243, 1)];
                [selectMore setTitle:@"选择更多商品" forState:UIControlStateNormal];
                [selectMore setTitle:@"选择更多商品" forState:UIControlStateHighlighted];
                selectMore.titleLabel.font = [UIFont boldSystemFontOfSize:22];
                //selectMore.titleLabel.textColor = [UIColor greenColor];
                [selectMore setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
                [selectMore addTarget:self action:@selector(moreClick:) forControlEvents:UIControlEventTouchUpInside];
                [self.view addSubview:selectMore];
                _selectMoreBtn = selectMore;

  • 相关阅读:
    calcite 概念和架构
    在vscode中快速生成vue模板
    curl发送post请求
    【vue】chrome已安装Vue Devtools在控制台却无显示
    java(第一天)
    小游戏之莫交叉
    再谈成麻结账程序2.0
    成麻结账程序
    倍福Twincat2 常用快捷键及部分注意事项
    IP地址,子网掩码、默认网关,DNS服务器之间的联系与区别
  • 原文地址:https://www.cnblogs.com/NSNULL/p/4597138.html
Copyright © 2011-2022 走看看