initWithFormat method
NSAttributedString
initWithFormat(
- NSAttributedString format, {
- required int options,
- NSLocale? locale,
initWithFormat:options:locale:
iOS: introduced 15.0.0 macOS: introduced 12.0.0
Implementation
NSAttributedString initWithFormat(
NSAttributedString format, {
required int options,
NSLocale? locale,
}) {
objc.checkOsVersionInternal(
'NSAttributedString.initWithFormat:options:locale:',
iOS: (false, (15, 0, 0)),
macOS: (false, (12, 0, 0)),
);
final $ret = _objc_msgSend_187k8ck(
object$.ref.retainAndReturnPointer(),
_sel_initWithFormat_options_locale_,
format.ref.pointer,
options,
locale?.ref.pointer ?? ffi.nullptr,
);
return NSAttributedString.fromPointer($ret, retain: false, release: true);
}