The fixed-time control problem is investigated for a class of uncertain nonlinear systems subjected to multiple unknown control directions. The control coefficients of nonlinear systems under consideration are time varying and their signs are not required to be identical. To tackle this challenge, a switching mechanism along with a novel dynamic boundary function is proposed. Utilizing the devised dynamic boundary function, adaptive parameters are introduced into the controller to effectively handle system uncertainties. It is proved that the system output converges to a small neighborhood of the origin in fixed time and the boundedness of all system signals is maintained. Finally, two simulation examples are used to show the validity of the presented switching control strategy.