How did they make Tobey Maguire appear to climb walls in 'Spider-Man'?

One theory is that they used dozens of tiny leads to lift him up. Or it could have been done by having the walls slightly tilted in a laying down position and then Tobey simply crawled his way up, perhaps with help from the tiny leads.