ios - Two Image Views Get added to the scrollView which I add using objects library? -


in application using scrollview show list of data(by adding each view each entry in list), when new entry added data list add new view subview scrollview,i use subviews count position newly added view , there came across issue scrollview has 2 imageviews.

i checked in -viewdidload

- (void)viewdidload {     [super viewdidload];      nslog(@"subvs %@",[samplescroll subviews]); } 

here console window

subvs (     "<uiimageview: 0x72b9610; frame = (233 121; 7 7); alpha = 0; opaque = no; autoresize = tm; userinteractionenabled = no; animations = { contentscenter=<cabasicanimation: 0x72dd8b0>; position=<cabasicanimation: 0x72e2520>; }; layer = <calayer: 0x72b96b0>>",     "<uiimageview: 0x72e2ae0; frame = (233 121; 7 7); alpha = 0; opaque = no; autoresize = lm; userinteractionenabled = no; animations = { contentscenter=<cabasicanimation: 0x72b7c50>; position=<cabasicanimation: 0x72b7ce0>; }; layer = <calayer: 0x72e2b80>>" ) 

edit:-i've added scrollview drag , drop in xib

those horizontal , vertical scroll indicators(which uiimageviews default) initialized scrollview

if don't want can remove them this

- (void)viewdidload {     [super viewdidload];      nslog(@"subvs %@",[samplescroll subviews]);      for(uiview *view in samplescroll.subviews){         [view removefromsuperview];    }  } 

Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -