[iOS]创建一像素的线

发布时间:2016-12-31 7:26:53
来源:分享查询网

    float sortaPixel = 1.0/[UIScreen mainScreen].scale;    UIView* line = [[UIView alloc]initWithFrame:CGRectMake(0,150,WIDTH,sortaPixel)];    line.backgroundColor = [UIColor purpleColor];    [self.view addSubview:line];

返回顶部
查看电脑版