tl; dr:我正在创建一个 UIImageView,它与发件人具有相同的图像。我试图弄清楚如何去做。
我试图获取发件人图像。这是我获取发件人的代码:
UIButton *playSelectionTag = (UIButton *)sender;
if (playSelectionTag.tag == 5) {
/*
[popInToolbar release];
[all release];
[world release];
[politics release];
[TVMovies release];
[aboutText release];
[aboutTrueFalse release];
[scoreText release];
[spaceBar release];
[done release];
*/
popUpPlay = [[UIImageView alloc]init];
popUpPlay.frame = CGRectMake(playSelectionTag.frame.origin.x, playSelectionTag.frame.origin.x, playSelectionTag.frame.size.width, playSelectionTag.frame.size.height);
[popUpPlay setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@", playSelectionTag.imageView.image]]];
}