Precompactness is the key. Let be uniformly continuous on . You get d>0 such that the oscilation of in each ball of radius d is smaller than 1. Every bounded subset in is precompact, hence you can find such that . Now you can easily get a bound for .