iOS working return (success and error)