Fixed an error when creating a sprite on iOS framework.