Răsfoiți Sursa

Apex Mobile
检查save时名字是否为空

Ray Zhang 8 ani în urmă
părinte
comite
47cb8227d6

+ 0 - 2
Apex Mobile/Apex Mobile.xcodeproj/project.pbxproj

@@ -252,7 +252,6 @@
 		71406DD018C36A6E000914C4 /* TableCellDate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableCellDate.m; sourceTree = "<group>"; };
 		714C39B61922FEE1004F045B /* NewsDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NewsDetailViewController.h; sourceTree = "<group>"; };
 		714C39B71922FEE1004F045B /* NewsDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NewsDetailViewController.m; sourceTree = "<group>"; };
-		714C39BB19233B67004F045B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main_iPhone.strings"; sourceTree = "<group>"; };
 		714C39BC19233B68004F045B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
 		714C39C019234065004F045B /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/Localizable.strings; sourceTree = "<group>"; };
 		71514ED1191B7E2500009C00 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
@@ -1348,7 +1347,6 @@
 			isa = PBXVariantGroup;
 			children = (
 				719EF8F318BB839F00EFFF5F /* Base */,
-				714C39BB19233B67004F045B /* zh-Hans */,
 			);
 			name = Main_iPhone.storyboard;
 			sourceTree = "<group>";

BIN
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 5
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -154,7 +154,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailTabBarController.m"
-            timestampString = "542087427.327617"
+            timestampString = "542182490.7886111"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "356"
@@ -170,7 +170,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/LocalDocumentsViewController.m"
-            timestampString = "542095531.808615"
+            timestampString = "542180911.239772"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "253"
@@ -186,7 +186,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/LocalDocumentsViewController.m"
-            timestampString = "542095531.8089499"
+            timestampString = "542180911.2402591"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "196"
@@ -218,7 +218,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/LocalDocumentsViewController.m"
-            timestampString = "542095531.80951"
+            timestampString = "542180911.240809"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "440"
@@ -250,7 +250,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/LocalDocumentsViewController.m"
-            timestampString = "542095531.810021"
+            timestampString = "542180911.241245"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "214"

+ 7 - 1
Apex Mobile/Apex Mobile/AMResultViewController.m

@@ -592,7 +592,7 @@
     if (err) {
         alertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:[NSString stringWithFormat:@"save document failed:\n%@",err.localizedDescription] preferredStyle:UIAlertControllerStyleAlert];
     } else {
-        alertVC = [UIAlertController alertControllerWithTitle:nil message:@"save document success" preferredStyle:UIAlertControllerStyleAlert];
+        alertVC = [UIAlertController alertControllerWithTitle:nil message:@"Document Saved" preferredStyle:UIAlertControllerStyleAlert];
     }
     [alertVC addAction:action];
     
@@ -757,6 +757,12 @@
     {
         UITextField * txt=[alertView textFieldAtIndex:0];
         NSString* name = txt.text;
+        if(name.length==0)
+        {
+            [RAUtils message_alert:@"Name can not be empty." title:@"Save Search" controller:self];
+            return;
+        }
+        
         NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self.params
                                                            options:0
                                                              error:nil];

+ 1 - 1
Apex Mobile/Apex Mobile/DetailPageViewController.m

@@ -186,7 +186,7 @@
     if (err) {
         alertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:[NSString stringWithFormat:@"save document failed:\n%@",err.localizedDescription] preferredStyle:UIAlertControllerStyleAlert];
     } else {
-        alertVC = [UIAlertController alertControllerWithTitle:nil message:@"save document success" preferredStyle:UIAlertControllerStyleAlert];
+        alertVC = [UIAlertController alertControllerWithTitle:nil message:@"Document Saved" preferredStyle:UIAlertControllerStyleAlert];
     }
     [alertVC addAction:action];
     

+ 6 - 0
Apex Mobile/Apex Mobile/DetailTabBarController.m

@@ -160,6 +160,12 @@
     {
         UITextField * txt=[alertView textFieldAtIndex:0];
         NSString* name = txt.text;
+        if(name.length==0)
+        {
+            [RAUtils message_alert:@"Name can not be empty." title:@"Save Search" controller:self];
+            return;
+        }
+        
         NSString * actions = [self.actions componentsJoinedByString:@","];
 //        NSString* param = [self.params description];