Rub the corn with olive oil and season evenly with salt and black pepper.
Place the corn in the air fryer basket in a single layer. Cook for 12-15 minutes, turning halfway through, until the corn is tender and slightly charred.
Remove the corn from the air fryer and spread softened butter over each ear. Serve hot.