Selaa lähdekoodia

1.修改Apex Mobile SQL拼写错误。

Pen Li 8 vuotta sitten
vanhempi
commit
0cbf0f6133

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

@@ -18,7 +18,7 @@
 + (int) get_recordid:(sqlite3*)db table:(NSString*) tablename where:(NSString*) whereclause order:(NSString*) orderby
 {
     int ret = -1;
-    NSString *sqlQuery = [NSString stringWithFormat:@"select _id from %@ where %@ orderby %@",tablename,whereclause,orderby];
+    NSString *sqlQuery = [NSString stringWithFormat:@"select _id from %@ where %@ order by %@",tablename,whereclause,orderby];
     sqlite3_stmt * statement;
     
     if (sqlite3_prepare_v2(db, [sqlQuery UTF8String], -1, &statement, nil) == SQLITE_OK)

+ 1 - 1
Apex Mobile/Apex Mobile/Main.storyboard

@@ -20,7 +20,7 @@
             <objects>
                 <navigationController id="YOs-rL-bRV" sceneMemberID="viewController">
                     <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="Cv3-js-Kre">
-                        <rect key="frame" x="0.0" y="20" width="375" height="48"/>
+                        <rect key="frame" x="0.0" y="20" width="375" height="44"/>
                         <autoresizingMask key="autoresizingMask"/>
                     </navigationBar>
                     <connections>