You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a view controller on navigation stack. That view controller has a player and it is set as a PlayerDelegate. When view controller is removed from stack it is not deinitialized because player holds a strong reference to his delegate.
You should change your code to this:
public weak var delegate: PlayerDelegate?
public protocol PlayerDelegate: class {
...
}
The text was updated successfully, but these errors were encountered:
ghost
pushed a commit
that referenced
this issue
Dec 13, 2015
I have a view controller on navigation stack. That view controller has a player and it is set as a PlayerDelegate. When view controller is removed from stack it is not deinitialized because player holds a strong reference to his delegate.
You should change your code to this:
public weak var delegate: PlayerDelegate?
public protocol PlayerDelegate: class {
...
}
The text was updated successfully, but these errors were encountered: