Revert "update for class and UIView"

This reverts commit d75ce877274d9999da95a993539845db6af3b9cc.