objective c - setBounds in Swift -
i'm trying convert objective-c app swift i'm stuck setbounds
. original code looks this:
- (void)setbounds:(cgrect)bounds { [super setbounds:bounds]; // code }
what equivalent in swift? i've tried looking in documents , google can't seem figure out.
you need override bounds
:
override var bounds: cgrect{ didset{ //your code here } }
Comments
Post a Comment