Revert "Revert "update for class and UIView""

This reverts commit 74ca5e2bd03e5873911d2868f47c07359349d251.