03-24

1. 图片作为bar的图标时会受tintColor影响,如果需要显示图片本身的颜色

UIImage *image = [[UIImage imageNamed:name] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

2. 有时需求UIWebView禁用滚动并嵌入UIScrollView(或其子类)中,此时需要获取webView内容的高度,下面是其中一种方法

CGFloat contentHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight;"] floatValue];

03-26

3. 已给tableView设置tableHeaderView为aView,此时若想改变其高度,需要重新指向一下

UIView *newView = aView;
tableView.tableHeaderView = newView;

03-27

4. 给UIWebView设置透明背景色

webView.opaque = NO;
webView.backgroundColor = [UIColor clearColor];

03-30

5. 已经建好的工程,依然可以修改类前缀(或者Xcode6新建的工程根本不带类前缀,同理设置):在最左侧点击工程,然后见下图修改Class Prefix

2015.03 零碎知识点

 

相关文章:

  • 2021-11-13
  • 2021-05-28
  • 2021-09-05
  • 2022-03-02
  • 2021-09-06
  • 2021-07-03
  • 2021-10-06
  • 2021-07-14
猜你喜欢
  • 2022-01-22
  • 2021-12-15
  • 2021-11-13
  • 2021-03-31
  • 2021-11-25
  • 2021-09-07
  • 2021-08-04
相关资源
相似解决方案