【发布时间】:2013-10-06 06:18:54
【问题描述】:
很奇怪,因为有些照片在 iOS 7 中没有显示,但在 iOS 6 中显示得很好。 我有正常和@2x 和-568@2x。 它发生在 IBOutlet UIImageView 以及当我继承 UIAlertView 时。
例如:
编辑:
alert = [[UIAlertTrapAlarm alloc] initWithCameraType:camType andFrame:[UIScreen mainScreen].bounds];
[[NSNotificationCenter defaultCenter] postNotificationName:CreateDistance object:nil userInfo:dictionary];
[alert addButtonWithTitle:NSLocalizedString(@"not_exists", nil)];
[alert addButtonWithTitle:NSLocalizedString(@"exists", nil)];
[alert show];
[alert changeMessageBox:distance description:trapDesc type:trapTypeString];
[alert showHideExistsNotExistsButtons:camType];
[alert showHideButtons];
// alert.imageViewBackground.image = [UIImage imageNamed:@"allert1"];
[alert.imageViewBackground setImage:[UIImage imageNamed:@"allert1.png"]];
[alert setNeedsDisplay];
[alert.screenView setNeedsDisplay];
我忘了提到我的子类 UIAlertView 中的所有子视图都没有显示。
【问题讨论】:
-
添加代码和信息,如果没有更多详细信息,我们无法为您提供帮助...
-
这主要发生在使用 IBOutlet 和 UIImageView 通过代码更改它时。
标签: ios objective-c uiimageview uiimage