fix(ios): replace macro `kCloseButtonSystemItem` with static function to fix XCode warning (#1153)