Spray or rub oil all over the prepared ears of corn. Place corn in the air fryer. If the ears of corn do not fit in your air fryer, breaking the ears of corn in half might help.
Cook for 8-10 minutes at 400˚F/204˚C, flipping ears halfway through cook time.