In Swift
ARC is calling deinit
when any UIViewController
is removing from memory , but it's not getting called if any UIView
is removed from memory.
for example
In case of UIViewController
Class deinit
is working great
class MusicPlayerUIViewController: UIViewController,UITableViewDelegate,UITableViewDataSource
{
deinit
{
APP_DELEGATE.RemovePlayerContents()
}
}
but in case of UIView
Class deinit
not working
class MusicPlayerView: UIView,UITableViewDelegate,UITableViewDataSource
{
deinit
{
APP_DELEGATE.RemovePlayerContents()
}
}
any idea .