iphone - How to remove UIimageView from Superview -


in application adding uiimage on every button click. user can add image number of times clicked button, have attached tag "count1" button, , count increases on every click. can differentiate every image tag.

now want remove images, on button click.

i tried remove images through following piece of code

for (int i=1; i<=count1; i++)      {         uiimageview *imgremove;         [[imgremove viewwithtag:i] removefromsuperview];      } 

but application crashing when press button.

please help...

if want remove view form super view @ question (with answer): link


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -