I have been lucky with my two that when they are having a barney because they want something, I pick them up and move them from where they are and put them somewhere safe and tell them to let me know when they're done. When they're finished we just move on. I know this doesn't work for everyone (my sisters kids for example have no idea what you're talking about), but it works for us.
Neither of my kids will let you touch or cuddle them when they're going off - it just makes them worse, so we've just adapted to using voice and letting them calm themselves down.
At this age they're learning to understand what we are communicating but they still haven't mastered the return communication properly and that's frustrating.