0
여기에 이미지를 표시하려면 이미지보기를 설정해야합니다.UIImageView에서 그림을 설정하는 방법
else if (n == 2) {
gamestatus.text = @"The Card is A Two.";
// I Need to set my imageview to a picture here.
}
여기에 이미지를 표시하려면 이미지보기를 설정해야합니다.UIImageView에서 그림을 설정하는 방법
else if (n == 2) {
gamestatus.text = @"The Card is A Two.";
// I Need to set my imageview to a picture here.
}
UIImageView *imageView = [[UIImageView alloc] initWithImage:myImageHere];
또는 이미지 뷰가 이미 선언 된 경우 ...
myImageView.image = myImageHere;
편집 : 이미지에 설정하는 방법에 대한 질문에 대답합니다.
간단한 방법, (일부는 약간 비효율적 인 주장)
myImageView.image = [UIImage imageNamed:@"my Example Image.png"];