ios - UIScrollView delegate not getting fire? -


i have subclassed uiscrollview , setting it's super class delegate shown in below snippet, have set contentsize:, delegate methods not getting called.

popview = [[popview alloc]initwithframe:cgrectmake(35, y, 250, 40)]; popview.answerdelegate = self; popview.delegate = self; popview.contentsize = cgsizemake(750, 40); popview.scrollenabled = yes; [self addsubview:popview]; 

one more thing, 'popview' subclass of uiscrollview.

if subclassing uiscrollview setting delegate self not anything. scrollview cannot own delegate since doesnt implement delegate methods itself. view contains scrollview needs delegate , must implement delegate functions work properly.

also self != super class. super == super class


Comments