How to quickly find and remove a UIImageView from the ParentViewController.View.Subviews collection?
UIImageView
ParentViewController.View.Subviews
Right now I am comparing Image.Size, but it is slow and sometimes flickers. Image objects are not compared.
upd ... the cause of the flicker was what I messed up. I fixed it. However, comparing Image.Size does not seem like a very good idea.
Image.Size
You can try the following:
Add a unique tag property (int) to your UIImageView :
myImageView.Tag = 100;
Then using this tag you can remove it from the supervisor:
ParentViewController.View.ViewWithTag(100).RemoveFromSuperview();
Source: https://habr.com/ru/post/1384197/More articles:C ++ object for string - c ++Why encapsulate this field? - standardsMonotouch: 5.1.0 Beta API change in CheckVersion - backwards-compatibilityInstalling updates for Android - "Application not installed" error - androidin Java, how to remove all 0s in a float? - javaHow to pass GET parameters and use # to go to part of my page? - htmlCreating string combinations (not permutations) - pythonMapReduce in Kassandra - cassandraHow to get the length (in time) from an animated GIF - javaHow to specify return types in GCD blocks - iosAll Articles