i adding subview superview.it should come on screen animations.
code:
homelistingview=[[uiview alloc]initwithframe:cgrectmake(10,10,300 , 300+190)]; [homelistingview setbackgroundcolor:[uicolor whitecolor]]; [uiview animatewithduration:0.1 delay:0.5 options:uiviewanimationoptioncurveeaseinout animations:^{ [scrollsell addsubview:homelistingview]; //scrollsell object of uiscrollview }completion:^(bool finished){ nslog(@"done"); }]; am doing wrong here. or there method animate?
assuming want move homelistingview onto screen, change code like:
homelistingview=[[uiview alloc]initwithframe:cgrectmake(-300, -300 + 190, 300 , 300+190)]; // create view frame off screen [homelistingview setbackgroundcolor:[uicolor whitecolor]]; [scrollsell addsubview:homelistingview]; //scrollsell object of uiscrollview [uiview animatewithduration:0.1 delay:0.5 options:uiviewanimationoptioncurveeaseinout animations:^{ homelistingview.frame = cgrectmake(10,10,300 , 300+190)]; // change frame move on screen }completion:^(bool finished){ nslog(@"done"); }];
Comments
Post a Comment