You should always follow the flight crew instructions! But it might have been this FA was on a power trip or maybe was having a bad day. But protocol wise, you can use your iPad during take off and landing as long as you're holding it and the keyboard attachment is off.