Пример #1
0
    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
Пример #2
0
 def init(self):
     self = ObjCInstance(send_super(__class__, self, 'init'))
     return self.setup()
Пример #3
0
 def initWithFrame_(self, frame: CGRect):
     self = ObjCInstance(send_super(__class__, self, 'initWithFrame:', frame))
     return self.setup()