targetViewControllerForAction method

UIViewController? targetViewControllerForAction(
  1. Pointer<ObjCSelector> action, {
  2. ObjCObject? sender,
})

targetViewControllerForAction:sender:

Implementation

UIViewController? targetViewControllerForAction(ffi.Pointer<objc.ObjCSelector> action, {objc.ObjCObject? sender}) {
  final _$$ref = object$.ref;
  final _$$ref$1 = sender?.ref;
  objc.checkOsVersionInternal('UIViewController.targetViewControllerForAction:sender:', iOS: (false, (8, 0, 0)));
  final $ret = _objc_msgSend_gx50so(
    _$$ref.pointer,
    _sel_targetViewControllerForAction_sender_,
    action,
    _$$ref$1?.pointer ?? ffi.nullptr,
  );
  return $ret.address == 0 ? null : UIViewController.fromPointer($ret, retain: true, release: true);
}