浏览代码

experiment

Marino Faggiana 8 年之前
父节点
当前提交
7fceddeb7e
共有 3 个文件被更改,包括 22 次插入2 次删除
  1. 0 1
      iOSClient/AppDelegate.h
  2. 20 1
      iOSClient/AppDelegate.m
  3. 2 0
      iOSClient/Main/CCMain.h

+ 0 - 1
iOSClient/AppDelegate.h

@@ -175,7 +175,6 @@
 - (void)updateApplicationIconBadgeNumber;
 - (BOOL)handleShortCutItem:(UIApplicationShortcutItem *)shortcutItem;
 
-- (BOOL)isVisiblePlusButton;
 - (BOOL)plusButton:(BOOL)visible;
 
 // Operation Networking

+ 20 - 1
iOSClient/AppDelegate.m

@@ -805,7 +805,26 @@
 
 - (void)handleTouchTabbarCenter:(id)sender
 {
-    
+    AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithView:self.window.rootViewController.view title:@""];
+    
+    [actionSheet addButtonWithTitle:NSLocalizedString(@"Info", nil)
+                              image:[UIImage imageNamed:@"passcode"]
+                               type:AHKActionSheetButtonTypeDefault
+                            handler:^(AHKActionSheet *as) {
+                                if (_activeMain)
+                                    [_activeMain returnCreate:returnCreateFolderPlain];
+                            }];
+    
+    [actionSheet addButtonWithTitle:NSLocalizedString(@"Add to Favorites", nil)
+                              image:[UIImage imageNamed:@"password"]
+                               type:AHKActionSheetButtonTypeDefault
+                            handler:^(AHKActionSheet *as) {
+                                if (_activeMain)
+                                    [_activeMain returnCreate:returnCreateFotoVideoPlain];
+                            }];
+    
+      
+    [actionSheet show];
 }
 
 - (void)updateApplicationIconBadgeNumber

+ 2 - 0
iOSClient/Main/CCMain.h

@@ -86,6 +86,8 @@
 
 @property (nonatomic, weak) CCLoginNCOC *loginVC;
 
+- (void)returnCreate:(NSInteger)type;
+
 - (void)createFolderCameraUpload;
 - (void)createFolder:(NSString *)fileNameFolder folderCameraUpload:(BOOL)folderCameraUpload;
 - (void)readFolderWithForced:(BOOL)forced;