The city says more New Yorkers were able to secure affordable housing in 2017.

New numbers from the mayor's office show more than 24,000 homes were financed.

City Hall says this tops the all-time record previously set by former Mayor Ed Koch in 1989.

At least 1,700 homes this year were preserved affordable apartments, while 7,000 of them were new.

Nearly half of them went to families living on less than $43,000 a year.

The city says more than 87,000 affordable apartments have been funded in the past four years.

Mayor Bill de Blasio has said he intends to build or preserve 300,000 affordable apartments in the city by 2026.

But while de Blasio was out celebrated his affordable housing accomplishments Tuesday, he faced a new round of questions about another set of low-income New Yorkers: People who live in public housing.

There have long been complaints of mold; a few months ago, the New York City Housing Authority was rocked by a lead paint scandal; and more recently, apartments have been losing heat even in the freezing cold.