Recently in my app I have found out that my UIButton outlet collection is leaking memory.
All I have is
@IBOutlet var TabBarButtons: [UIButton]!
And from Instrument
Can anyone tell me what's gone wrong? As time goes on, the amount of variables in the NSArray keeps growing and all I have is an array with 4 UIButtons from IB.
This is a bug. Reference rdar://24272775
Workaround for now is to replace [UIButton]! with NSArray! and cast its contents to UIButton later when used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With