xcode userstate