【发布时间】:2012-11-26 08:22:45
【问题描述】:
我正在开发一个应用程序,我想知道如何在 iPhone 中实现忘记密码的场景。
当用户忘记密码时,我的应用程序中有一个按钮,当我点击它UIAlertView 打开其中我有一个文本字段时,用户必须输入他们的电子邮件地址和密码才能获取该邮件 ID 上的邮件。
我该怎么做,我已经为按钮定义了一个动作,这是代码:
-(IBAction)forgetpassword:(id)sender
{
UIAlertView *av = [[UIAlertView alloc]initWithTitle:@"Forget Password" message:@"Please Enter your Email address " delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
av.alertViewStyle = UIAlertViewStylePlainTextInput;
[av textFieldAtIndex:0].delegate = self;
[av show];
}
但我需要的只是需要我可以使用的代码并将密码邮寄到用户将输入的电子邮件 ID。
【问题讨论】:
标签: iphone objective-c