zoukankan      html  css  js  c++  java
  • 第14月第1天 uialterview 键盘 uibutton圆角

    1.

    在IOS 8之后 当UIAlertView 和keyboard 同时出现时,会出现键盘闪现的情况 所以就修正UIAlertView

    http://blog.sina.com.cn/s/blog_881ed8500102w114.html

    2.uibutton 圆角

    http://www.jianshu.com/p/b294c80ba37d

    http://www.jianshu.com/p/b294c80ba37d

    http://www.cocoachina.com/ios/20150803/12873.html

    3.uibutton title left

    有些时候我们想让UIButton的title居左对齐,我们设置btn.textLabel.textAlignment = UITextAlignmentLeft是没有作用的,我们需要设置

    btn.contentHorizontalAlignment = UIControlContentHorizonAlignmentLeft;

    但是问题又出来,此时文字会紧贴到做边框,我们可以设置btn.contentEdgeInsets = UIEdgeInsetsMake(0,10, 0, 0);使文字距离做边框保持10个像素的距离。

    http://blog.csdn.net/xiaofei125145/article/details/44412849

    4.uitableview 分割线

    self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
    self.tableView.separatorInset = UIEdgeInsetsZero;
    self.tableView.separatorColor = UIColorRGB(0xf2f2f2);


    //移除分割线
    if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
    [cell setSeparatorInset:UIEdgeInsetsMake(0,kScreenWidth,0,0)];
    }
    if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
    [cell setLayoutMargins:UIEdgeInsetsMake(0,kScreenWidth,0,0)];
    }

    http://blog.csdn.net/u011619283/article/details/53214208

  • 相关阅读:
    复制带中文的公式贴到通达信公式中显示乱码解决方案
    命令指定线程个数
    随机姓名
    将二维list某列组成新的list
    jenkins配置小结
    jmeter5.0 while controller使用总结
    centos7 桌面化配置
    django study1 数据库
    centos7 安装firefox
    python之self
  • 原文地址:https://www.cnblogs.com/javastart/p/7764858.html
Copyright © 2011-2022 走看看