내 코드에서 동일하게 표시되지,이합니다있는 UIImage 같은 그녀의 UIImageView 같은 크기지만
imageFormatos = [UIImage imageNamed:@"FondoFormatos"];
formatosImageView.frame = CGRectMake(tempFormatoX, 540, widthFormato, 230);
formatosImageView.contentMode = UIViewContentModeScaleToFill;
formatosImageView.layer.borderWidth=0.0;
[imageFormatos DrawInRect:CGRectMake(formatosImageView.frame.origin.x,formatosImageView.frame.origin.y,formatosImageView.frame.size.width,formatosImageView.frame.size.height)];
formatosImageView.backgroundColor = [UIColor blueColor];
을 그리고 다음과 같이 표시 :
내가 크기를보고 배경을 설정 조회수 : 2 모든 이미지보기를 채우는 검은 이미지가 필요합니다.편집 : 좋아,이 투명한 경계를 가지고 있지만, 엑스 코드 파일 관리자에서 표시되지 :
당신이 이미지를 열어 확인할 수 있습니다 확인 미리보기에서 이미지 주위에 투명한 배경이 있는지 확인하십시오. –
formatosImageView.contentMode = UIViewContentModeScaleAspectFill; 한 번 시도하십시오 –