开发者

Create popup animation

开发者 https://www.devze.com 2022-12-27 18:08 出处:网络
How to create a pop up animation on iPhone? I want show my uivi开发者_开发问答ew as a popup view, like uialertview design.- (void) killHUD

How to create a pop up animation on iPhone? I want show my uivi开发者_开发问答ew as a popup view, like uialertview design.


- (void) killHUD
{

    [alertView dismissWithClickedButtonIndex:0 animated:YES];
    [alertView release];
    alertView = nil;
}
- (void)presentSheet:(NSString *)message withFrame:(CGRect)frame
{
    if(!alertView)
    {

        alertView = [[CustomAlertView alloc] initWithFrame:frame onView:self.window];
        alertView.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin;
        [alertView setNeedsDisplay];
        [alertView setText:message];
        [alertView show];
    }
}

You can use these functions creaed by me to show an hide the loading animation popup..

Happy Coding..

0

精彩评论

暂无评论...
验证码 换一张
取 消