You are right but it was a simple one line angularjs timeout function which was used for countdown timer and he was stuck on it and wanted me to explain it to him. I explained and then he was like, ok.
The rest of it sounds simply like arrogance. Simply said, it is quite common in software world. To me, it worked couple of times to say that "I know", but it depends on exact personalities involved. Be careful to not underestimate him just because he is arrogant and annoying.
Also, what does "act like manager" means? Is he assigning you tasks and checking time sheets? Bossing you around?
Awesome! Mission accomplished!