开发者

Alertview in iphone application development [closed]

开发者 https://www.devze.com 2023-01-31 15:19 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow社区 Closed 9 years ago.

I am new to iphone application.In my current app.,I have uibutton(changepassword).my requirement is,when i click on the button,it will shows alertview which contains three textfileds(current password,newpassword,retype password) and two uibuttons(submitbutton,cancel button). can anyone send me the required code with explanation?


// Create a new alert object and set initial values.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
                                                message:@"Message"
                                               delegate:nil
                                      cancelButtonTitle:@"Ok"
                                      otherButtonTitles:nil];
// Display the alert to the user
[alert show];
// Release the alert
[alert release];

Examples and explanations here: http://iloveco.de/uikit-alert-types/

Reference: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAlertView_Class/UIAlertView/UIAlertView.html

0

精彩评论

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

关注公众号