The president sneered at the journalist and played up to the audience at a restaurant in Iowa.