zoukankan      html  css  js  c++  java
  • iOS UIButton详细介绍

      昨天,做了项目中的一点,觉得细节还是很重要的。像一个普通的UIButton,给它调试字体格式,大小什么的,确实是蛮耗时间的。

      今天打算详细的归纳归纳。。

    typedef NS_ENUM(NSInteger, UIButtonType) {
        UIButtonTypeCustom = 0,    //可以自适应的类型,一般给它添加图片,跟据背景图片的大小来调节本身的大小,如果不设置frame的话,将不会显示       // no button type
        UIButtonTypeRoundedRect,          // rounded rect, flat white button, like in address card 圆角矩形
    
        UIButtonTypeDetailDisclosure,//显示细节》蓝色小箭头按钮,主要做详细说明用
        UIButtonTypeInfoLight,//亮色感叹号
        UIButtonTypeInfoDark,//暗色感叹号
        UIButtonTypeContactAdd,// 十字加号按钮,貌似用这个模式,不能给按钮添加title
    };
  • 相关阅读:
    python标准库
    python常用标准库
    django-restframework-serializers
    Resources.UnloadUnusedAssets
    Shader 的 Blend
    C++STL queue
    C++STL stack
    C++STL deque
    C++STL容器重点
    C++STL 迭代器
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3313343.html
Copyright © 2011-2022 走看看