IOS Knowledge Pot

Thursday, 30 October 2014

Add SubView with animation.

 myView.alpha=0;

    [mySuperView addSubview:myView];

    [UIView animateWithDuration:0.2
                         animations:^{myView.alpha = 1.0;}
                         completion:nil];
Posted by Unknown at 22:38 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Remove View from SuperView with Animation

[UIView animateWithDuration:0.2
     animations:^{view.alpha = 0.0;}
     completion:^(BOOL finished){ [view removeFromSuperview]; }];
Posted by Unknown at 22:20 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2016 (1)
    • ►  February (1)
  • ►  2015 (26)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (7)
    • ►  August (5)
    • ►  July (1)
    • ►  June (4)
    • ►  April (2)
    • ►  March (1)
  • ▼  2014 (55)
    • ►  November (4)
    • ▼  October (2)
      • Add SubView with animation.
      • Remove View from SuperView with Animation
    • ►  September (1)
    • ►  July (7)
    • ►  June (4)
    • ►  May (10)
    • ►  April (6)
    • ►  March (8)
    • ►  February (6)
    • ►  January (7)
  • ►  2013 (16)
    • ►  November (4)
    • ►  October (2)
    • ►  September (10)
Simple theme. Powered by Blogger.