here is a Solution to get the same effect :
just manipulate your picker view delegate methods like this...
This BLOG is just to help Developers for some programming issues...!!! This is not the matter for misuse, if it happens then only the reader will be responsible for the results. Please comment also if you found them useful for u...!!!
-(IBAction)cut { [self copy]; textPad.text = @""; }
-(IBAction)copy {
NSString *copyString = [[NSString alloc] initWithFormat:@"%@",[textPad text]];
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setString:copyString];
}
-(IBAction)paste {
UIPasteboard *pb = [UIPasteboard generalPasteboard];
textPad.text = [pb string];
}
These are step by step instructions on how to use QuickPwn 1.1 for Apple Mac OSX to jailbreak your 2.1 iPhone or iPhone 3G.
Step One
Create a folder on your desktop called Pwnage
Step Two
Download QuickPwn 1.1 from here and place it in the Pwnage folder. Likewise, download the latest 2.1 firmware from below and place it in the same folder.
iPhone 2.1 ipsw Download
iPhone 3G 2.1 ipsw Download
Step Three
Now double click to mount the QuickPwn [QuickPwn_1.1.dmg] archive that you downloaded above. Then drag the QuickPwn application into the Pwnage folder you created on your desktop.
Step Four
Now double click the icon to launch QuickPwn from your Pwnage folder.
Step Five
Click OK to accept the copyright notice.
Step Six
Connect your iPhone or iPhone 3G into the computer when asked, then click OK.
Step Seven
QuickPwn will now automatically detect the device that you connected!
Step Eight
QuickPwn will now attempt to find the latest firmware for this device
Step Nine
You will be asked if you would like to replace the original boot and recovery logos on your iPhone. Select Yes or No to continue.
Step Ten
QuickPwn will now build your custom IPSW.
Step Eleven
You will be prompted to enter your username and password. After doing this, then click OK.
Step Twelve
QuickPwn will now guide you on how to put your iPhone into DFU mode. Pay attention and do exactly as QuickPwn directs you. First, turn off the device.
Next, you will be prompted to hold both the Home and Power buttons for 10 seconds.
Finally, you will let go of the power button and continue holding down the Home button for another 10 seconds.
Step Thirteen
QuickPwn will now begin sending information to your iPhone.
Step Fourteen
You will notified that QuickPwn is modifying your iPhone. The process will take some time and will cause the iPhone to reboot. Do not do anything until the process has completed.
Step Fifteen
After your iPhone has rebooted it will be jailbroken and have both Cydia and Installer on the Springboard. Congratulations!
//Set height
[UIHardware _setStatusBarHeight:0.0f];
//Set for a limited time
[self setStatusBarMode:2 duration:0.0f];
//hide status bar
[self setStatusBarHidden:YES animated:NO];
NSString *email = textFieldemail.text; NSString *emailRegEx = @"(?:[a-z0-9!#$%\\&'*+/=?\\^_`{|}~-]+(?:\\.[a-z0-9!#$%\\&'*+/=?\\^_`{|}" @"~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\" @"x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-" @"z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5" @"]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-" @"9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21" @"-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])"; NSPredicate *regExPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegEx]; BOOL myStringMatchesRegEx = [regExPredicate evaluateWithObject:email]; if(!myStringMatchesRegEx) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"email" message:@"Email id is invalid, please provide a valid email id." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } else [self prepareHmlDataAndSendEmail];
if (! (([txtMailId.text rangeOfString:@"@"].location != NSNotFound) && ([txtMailId.text rangeOfString:@"."].location != NSNotFound) && [txtMailId.text rangeOfString:@"@"].location < [txtMailId.text rangeOfString:@"."].location ) ) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"email" message:@"Email id is invalid, please provide a valid email id." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } else [self prepareHmlDataAndSendEmail];Way 3.
NSArray *validateAtSymbol = [txtLoginId.text componentsSeparatedByString:@"@"]; NSArray *validateDotSymbol = [txtLoginId.text componentsSeparatedByString:@"."]; if(([validateAtSymbol count] != 2) || ([validateDotSymbol count] < 2)) { UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:nil message:@"Invalid EMail Address" delegate:self cancelButtonTitle:nil otherButtonTitles:@"Ok", nil]; [alertView show]; [alertView release]; }