There are plenty of trees in most of the campgrounds in Yosemite Valley. I can't guarantee every site will have adequate trees, but it's usually not too hard to make something work. The only real restrictions are that you need to sufficiently pad the trees with something. Usually cardboard, old tshirts, socks, or what have you.
"Get busy living, or get busy dying."
Warbonnet Blackbird 1.0 DL
Warbonnet Edge Tarp
North Face Cat's Meow 20°
Custom HammockGear.com Phoenix Underquilt