With the increasing demand for application development of task publishers (e.g., automobile enterprises) in the Internet of Vehicles (IoV), federated learning (FL) can be used to enable vehicle users (VUs) to conduct local application training without disclosing data. However, the challenges of VUs’ intermittent connectivity, low proactivity, and limited resources are inevitable issues in the process of FL. In this paper, we propose a UAV-assisted FL framework in the context of the IoV. An incentive stage and a training stage are involved in this framework. UAVs serve as central servers, which assist to incentivize VUs, manage VUs’ contributed resources, and provide model aggregation, making sure communication efficiency and mobility enhancement in FL. The numerical results show that, compared with the baseline algorithms, the proposed algorithm reduces energy consumption by 50.3% and improves model convergence speed by 30.6%.