If you add the melted butter to cook the corn, the butter might burn. That's why we suggest using light spray of oil first, then add the butter right before eating. That way, you can taste the butter more!
Cut end of corn to fit air fryer basket. If needed for smaller air fryer, cut the corn in half
Coat all sides of the corn with oil spray or olive oil. Season with salt and pepper around the whole corn.
Air Fry at 370°F for 12-16 minutes, flipping half way. Cook until kernels are tender and lightly browned. (Cooking time will depend on size of corn, how full air fryer basket is, & different models/sizes of air fryers). Add butter and enjoy!