There have been four types of iPhone .
There are four generations of iPhone models , and they were accompanied by four major releases of iOS ( formerly iPhone OS ) .