It might help if you elaborate a bit on why you want to create your own view class.
In a lot of cases this is not required and other solutions can be employed, e.g. custom delegates.

Cheers,
_