How do I use Arduino OTA update with WiFi sketch?

I am trying to use Arduino OTA to flash my board wirelessly. But I want to combine A WiFi sketch with OTA code so I can still use it to upload sketches wirelessly. but I know little about the esp8266. Please help with this!

what board?

Hey there,

use google and search for esp8266-ota-updates-with-arduino-ide-over-the-air

ThisIs the most complete explanation i found, it explains both through the IDE as with downloading compiled binary (webupdater)