Barcelona and Malaga Spain

I will be in Spain in March spending a few days in Barcelona and a couple of days in Malaga.

Any tips or hints would be appreciated, especially regarding transportation options and attractions