Do you need a mac to program iPhone apps?

You will need a Mac to program iOS apps as the iOS Software Developers Kit, and alternatives such as GameSalad or Corona, are only available for the Mac. (See links below). Corona will also build apps for Android phones as will other options on other platforms.