|
@@ -75,6 +75,15 @@
|
|
|
return UIInterfaceOrientationPortrait;
|
|
return UIInterfaceOrientationPortrait;
|
|
|
}
|
|
}
|
|
|
- (IBAction)onSaveClick:(UIBarButtonItem *)sender {
|
|
- (IBAction)onSaveClick:(UIBarButtonItem *)sender {
|
|
|
|
|
+ if(self.displayfields.count<1)
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle: NSLocalizedString(@"alert_title_error", nil) message:NSLocalizedString(@"alert_msg_customizefield", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"ok", nil) otherButtonTitles:nil, nil];
|
|
|
|
|
+ // UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Error!" message:@"User&Password can not be empty!" delegate:nil cancelButtonTitle:NSLocalizedString(@"ok", nil) , nil];
|
|
|
|
|
+ [alert show];
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
sqlite3 *db =[ApexMobileDB get_db];
|
|
sqlite3 *db =[ApexMobileDB get_db];
|
|
|
@try{
|
|
@try{
|
|
|
|
|
|