The sequence of events of a UIVIEWCONTROLLER in IOS