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;

  • 相关阅读:
    iOS 网络编程:socket
    Zsh和Bash,究竟有何不同
    关于微软win10 2004的更新以及wsl2 Ubuntu18.04安装
    C# 委托事件机制 订阅发布
    关于Docker理念和安装,对Visual Studio2019自带生成的DockerFile配置,以及Docker镜像的发布与拉取
    div弹框
    vs分页
    ado显示下拉
    SQL server动态拼接存储过程分页
    退役
  • 原文地址:https://www.cnblogs.com/NSNULL/p/4597138.html
Copyright © 2011-2022 走看看