How can I set up an iOS simulator for testing?

Can anyone please ggive me a tutorial on how do i set up an iOS simulator for testing.