leg shaving and self tanning

Sa
Does anyone know a way to shave your legs and then put tan on without the tan going into your pores? Tan always comes up like dotty on my legs even though I exfoliate and shave a day before self tanning. Totally off topic but I just thought someone could help :)