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

  • 相关阅读:
    Navigator对象
    Location对象
    History 对象
    计时器用法
    window对象
    某班的成绩出来了,现在老师要把班级的成绩打印出来,和 显示当前时间
    牛客练习赛14A(唯一分解定理)
    贪心法(举例子强行凑规律)
    线性筛(欧拉筛法)
    欧拉函数
  • 原文地址:https://www.cnblogs.com/javastart/p/7764858.html
Copyright © 2011-2022 走看看