ios - Adding subviews to UIView subclass for use with Core Graphics -


i have subclass of uiview use core graphics.

i have uiviewcontroller view well.

i want add regular non-core graphics uiviews view subclass.

do add uiviews subviews self.view ([self.view addsubview:view]) in view controller or add them subviews in uiview subclass file ([self addsubview:view])?

using objective-c.

both options possible - have decide makes sense.

if intend reuse uiview subclass in view controller, , doesn't need core graphics subviews, should put logic in view controller. otherwise, i'd put inside uiview subclass, amount of code in uiviewcontroller tends rather large quickly.


Comments