Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现分类标签以及分类的内容字体都有模糊感. #10

Open
LoSenTrad opened this issue Nov 2, 2016 · 3 comments
Open

发现分类标签以及分类的内容字体都有模糊感. #10

LoSenTrad opened this issue Nov 2, 2016 · 3 comments

Comments

@LoSenTrad
Copy link

你好! 不知道你们发现没有呀,如题所述问题.模糊感,感觉怪怪的.是不是字体被压缩还是放大了?求支援...

@jsfu
Copy link
Owner

jsfu commented Nov 3, 2016

发一下截图吧

@xiaobing1024
Copy link

xiaobing1024 commented Apr 12, 2017

  1. 标题像素未对齐,导致有点模糊,原因:坐标和大小不是整数。解决:使用ceilf()方法。
    例子:改变CATextLayer *layer的大小位置时,都处理一下
layer.bounds = CGRectMake(0, 0, ceilf(size.width), ceilf(size.height));
layer.position = CGPointMake(ceilf(point.x), ceilf(point.y));
  1. tableView的label像素未对齐,导致模糊,原因:
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 0.1;
}

改成 return CGFLOAT_MIN; footer同理。
或者第二种解决方法:UITableViewStyleGrouped 改成 UITableViewStylePlain,删除heightForHeaderInSectionheightForFooterInSection方法

@xiaobing1024
Copy link

具体用模拟器的 Debug->Color Misaligned Images 查看
红色就是没有对齐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants