Toddler won't eat

Anyone else's 1 year old won't eat? He'll eat when I'm not around but when I'm in the room he refuses to eat like he only wants breastmilk. I am still breastfeeding, I'm not wanting to but everytime he sees me he cries & screams until he gets it. What can I do?