웹에서 가져와야하는 이미지가 있습니다. URL의 데이터 만 사용하면됩니다.
망막 디스플레이에 올바르게 표시해야합니다.
웹에서 이미지를 가져 오면 여전히 픽셀 화되어 있습니다. 이미지의 눈금을 망막 디스플레이 (2.0)로 설정해야하지만, 뭔가 빠져 있어야합니다. 여기까지 내가 한 것입니다.URL의 이미지를위한 망막 디스플레이
UIImage *img = [UIImage imageWithData:[NSData dataWithContentsOfURL:@"http://www.msdomains.com/tmp/test.png"];
CGRect labelFrame = CGRectMake(0,0,64,64);
UIImageView *imageView = [[UIImageView alloc] initWithFrame:labelFrame];
imageView.contentScaleFactor = [UIScreen mainScreen].scale;
[imageView setImage:img];
[self addSubview:imageView];
[imageView release];
진짜인가요? – Ali
이 나를 위해 작동하지 않습니다 –
이 농담입니까? – deadlock