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;

  • 相关阅读:
    全面理解面向对象的 JavaScript
    账号
    移动端 前端框架 amaze ui
    javascript 精典案例分析一览
    前端事件系统(一)
    周总结12
    周总结11
    相比较于其他的同类软件
    团队冲刺第十五天
    团队冲刺第十四天
  • 原文地址:https://www.cnblogs.com/NSNULL/p/4597138.html
Copyright © 2011-2022 走看看