For Barcelona salaries, taxis are expensive, and can't compete with public transport. Uber, on the other hand, hits the sweet spot, with fares that are it competitive with metro or bus if you're sharing the ride with friends.
One trip from Gràcia to Barceloneta, 5km:
* Metro: 22 minutes, 1,03€ (with a T-10 card, which is the most expensive integrated transport option)
* Taxi: 15 minutes, 8-9€
* Uber: 15 minutes, 4-5€
Also, Barcelona cab drivers are known for driving you around if you look like a tourist. Uber drivers will never do that, since you rate them after the trip.