Question

I have a Button Add. which will add images from Gallery and Camera.

enter image description here

I want to show this UIVIew from ryt corner and it will expand from 1 to 2 to 3 and to final stat 4. like a baloon . and it will hide as same, from 4 to 3 to 2 to 1.

I have used this animation but this is not what i want ( balloon popover)

/*[UIView beginAnimations:@"" context:NULL];

        //The new frame size
        [AddImagesToCanvasView setFrame: CGRectMake(224,185,175,132)];

        //The animation duration
        [UIView setAnimationDuration:2.0];

        [UIView setAnimationDelay: UIViewAnimationCurveEaseIn];

        [UIView commitAnimations];*/
Was it helpful?

Solution

just change the frames and radious which you want.. also add image in background if you want to display like a ballon with ballon image see code..

UIView *popUpView = [[UIView alloc] initWithFrame:view1.frame]; ///add the frame with requirement e.g view1,view2

popUpView.alpha = 0.0;
popUpView.layer.cornerRadius = 5;
popUpView.layer.borderWidth = 1.5f;
popUpView.layer.masksToBounds = YES;
[self.view addSubview:popUpView];

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.4];
[popUpView setAlpha:1.0];
[UIView commitAnimations];
[UIView setAnimationDuration:0.0];

UPDATE:

also see the custom popover view from bellow link..

  1. PopupView

  2. alpopoverview

    i hope this help you...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top