systemImageNamed_ static method

UIImage? systemImageNamed_(
  1. NSString name
)

Retrieve a system-provided image with the specified name. This will only return system-provided images. If you want a custom image as defined in your own catalogs, you should use +imageNamed:.

UIKit applications on macOS may pass NSImageName values (defined in <AppKit/NSImage.h>) for the name to access macOS system images.

Returns nil if an image with specified name doesn't exist.

Implementation

static UIImage? systemImageNamed_(objc.NSString name) {
  final _ret = _objc_msgSend_62nh5j(_class_UIImage, _sel_systemImageNamed_, name.ref.pointer);
  return _ret.address == 0 ? null : UIImage.castFromPointer(_ret, retain: true, release: true);
}