Skip to content

UIView:largeContentImage 属性 ​

largeContentImage 属性是放大显示时的图片。见 showsLargeContentViewer。

值 ​

UIImage,或者 null。

  • 可读,可写。
  • 默认值未在模拟器验证。
  • 写回原值不抛(验收用例核对过)。效果未在模拟器验证。

示例 ​

js
const item = new UIView();
const star = UIImage.systemImageNamed('star');
item.largeContentImage = star;

效果:放大显示时用星形图标。未在模拟器验证。

对应的 iOS API ​

UIView.largeContentImage。

参见 ​