boyfriend acts different .

sarah
so when I hang out with my boyfriend he's nice to me and loves all over me. over text , he's so rude to me , calls me annoying , ignores me etc. Whyy does he act like this ?