瀏覽代碼

new Intro

Marino Faggiana 7 年之前
父節點
當前提交
b6d3aef125

+ 17 - 1
iOSClient/Brand/Intro/CCIntro.m

@@ -84,6 +84,22 @@
     page1.titleIconPositionY = titleIconPositionY;
     page1.showTitleView = NO;
     
+    EAIntroPage *page11 = [EAIntroPage page];
+    
+    page11.titleIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"intro11"]];
+    page11.title = NSLocalizedStringFromTable(@"_intro_11_title_", @"Intro", nil);
+    page11.desc = NSLocalizedStringFromTable(@"_intro_11_text_",  @"Intro", nil);
+    
+    page11.titlePositionY = titlePositionY;
+    page11.titleColor = [UIColor blackColor];
+    page11.titleFont = [UIFont systemFontOfSize:20];
+    page11.descPositionY = descPositionY;
+    page11.descColor = [UIColor blackColor];
+    page11.descFont = [UIFont systemFontOfSize:14];
+    page11.bgImage = [UIImage imageNamed:@"bgbianco"];
+    page11.titleIconPositionY = titleIconPositionY;
+    page11.showTitleView = NO;
+
     EAIntroPage *page2 = [EAIntroPage page];
 
     page2.titleIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"intro2"]];
@@ -117,7 +133,7 @@
     page3.showTitleView = NO;
 
     
-    EAIntroView *intro = [[EAIntroView alloc] initWithFrame:self.rootView.bounds andPages:@[page1, page2, page3]];
+    EAIntroView *intro = [[EAIntroView alloc] initWithFrame:self.rootView.bounds andPages:@[page1, page11, page2, page3]];
     //intro.backgroundColor = [UIColor whiteColor];
     intro.tapToNext = YES;
     intro.pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];

+ 21 - 0
iOSClient/Brand/Intro/ImagesIntro.xcassets/intro11.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "intro11@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

二進制
iOSClient/Brand/Intro/ImagesIntro.xcassets/intro11.imageset/intro11@2x.png


+ 3 - 0
iOSClient/Supporting Files/en.lproj/Intro.strings

@@ -11,6 +11,9 @@
 "_intro_1_title_"   = "A safe home for all your data";
 "_intro_1_text_"    = "Access, share and protect your files at home and in your enterprise";
 
+"_intro_11_title_"  = "Gesture on file";
+"_intro_11_text_"   = "Swipe on right or on left for options or a long touch for Copy Paste Open in…, or press for 3D Touch when available";
+
 "_intro_2_title_"   = "Multi account";
 "_intro_2_text_"    = "Connect to all your clouds and touch Nextcloud logo on Files tab to quickly switch";