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

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -