Apologies to the mods, I completely forgot about the 3000 character limit.

&amp;#x200B;

Howdy, ftp, ltl, throwaway account for obvious reasons. If this post doesn't quite fit in here I apologise in advance, and thank you in advance to any and all replies.

Onto the story. Sorry if it gets long. TLDR at the bottom.

This happened quite recently, I'll keep it as short as possible.

I'm an Apple user, He's an Andorid user.

In short, he got angry because he thought I was intentionally being condescending and trying to 'mansplain' how a calendar worked, when I was just trying to show how his logic (direct quote from him) was impossible in this situation after I had explained had actually happened (he suggested it glitched to monthly view after I had told and then demonstrated with images how it hadn't after he still didn't understand.)

He blows up, I eventually get fed up and bluntly call him out on his pettiness, insults and overall disrespectful manner in talking to me (as if he were talking to a child). 

This is not the first time he's started petty arguments like this, but it always leaves me wondering if I'm actually the bad guy.

AITA in how I handled this situation or is there something better I could have done? He's one of my longest and best friends

TLDR: friend assumed something incorrect about a situation, I corrected him, he got mad at me, I argued my points back, he insulted me, I told him I wasn't going to take it, he told me to fuck off and blocked me. AITA for how I handled myself.