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

  • 相关阅读:
    RTT设备与驱动之串口
    RTT设备与驱动之PIN设备
    RTT之ENV
    MQTT学习之一
    思维导图软件
    英语单词学习方法
    RTT之POSIX
    10 个强大的JavaScript / jQuery 模板引擎推荐
    30个实用的jQuery选项卡/导航教程推荐
    jquery 自动完成 Autocomplete插件汇总
  • 原文地址:https://www.cnblogs.com/javastart/p/7764858.html
Copyright © 2011-2022 走看看