Machine State Concept in IOS