[iOS]创建一像素的线
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];
“人生苦短,不要把时间浪费在犹豫不决上,喜欢的东西就去买,喜欢的人就去追。”