In swift I can show the tag
let MY_CUSTOM_TAG = 123
tableView.tag = MY_CUSTOM_TAG
My question is: how do I remove a view from a supervisor using a tag using swift?
Goal C:
#define MY_CUSTOM_TAG 1234
mySubview.tag = MY_CUSTOM_TAG;
[self.tableView addSubview:mySubview] ;
[[self.tableView viewWithTag:MY_CUSTOM_TAG]removeFromSuperview] ;
source
share