def createContentView(self): superClipView = ObjCInstance(send_super(__class__, self, 'contentView')) if not isinstance(superClipView, RefreshableClipView): # create new clipview documentView = superClipView.documentView clipView = RefreshableClipView.alloc().initWithFrame( superClipView.frame) clipView.documentView = documentView clipView.copiesOnScroll = False clipView.drawsBackground = False self.setContentView(clipView) superClipView = ObjCInstance( send_super(__class__, self, 'contentView')) return superClipView
def init(self): self = ObjCInstance(send_super(__class__, self, 'init')) return self.setup()
def initWithFrame_(self, frame: CGRect): self = ObjCInstance(send_super(__class__, self, 'initWithFrame:', frame)) return self.setup()