|
@@ -64,18 +64,6 @@
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-- (void)login:(id)sender
|
|
|
-{
|
|
|
- selector = k_intro_login;
|
|
|
- [self.intro hideWithFadeOutDuration:0.7];
|
|
|
-}
|
|
|
-
|
|
|
-- (void)signUp:(id)sender
|
|
|
-{
|
|
|
- selector = k_intro_signup;
|
|
|
- [self.intro hideWithFadeOutDuration:0.7];
|
|
|
-}
|
|
|
-
|
|
|
- (void)show
|
|
|
{
|
|
|
[self showIntro];
|
|
@@ -229,4 +217,42 @@
|
|
|
[self.intro showInView:self.rootView animateDuration:0];
|
|
|
}
|
|
|
|
|
|
+#pragma --------------------------------------------------------------------------------------------
|
|
|
+#pragma mark ===== Action =====
|
|
|
+#pragma --------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+- (void)login:(id)sender
|
|
|
+{
|
|
|
+ selector = k_intro_login;
|
|
|
+ [self.intro hideWithFadeOutDuration:0.7];
|
|
|
+}
|
|
|
+
|
|
|
+- (void)signUp:(id)sender
|
|
|
+{
|
|
|
+ selector = k_intro_signup;
|
|
|
+ [self.intro hideWithFadeOutDuration:0.7];
|
|
|
+}
|
|
|
+
|
|
|
+- (void)host:(id)sender
|
|
|
+{
|
|
|
+ AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
|
+
|
|
|
+ SwiftModalWebVC *webVC = [[SwiftModalWebVC alloc] initWithUrlString:[NCBrandOptions sharedInstance].linkLoginHost colorText:[UIColor whiteColor] colorDoneButton:[UIColor blackColor] doneButtonVisible:YES hideToolbar:NO useRedirectCookieHandling:false];
|
|
|
+ webVC.delegateWeb = self;
|
|
|
+
|
|
|
+ [appDelegate.window.rootViewController presentViewController:webVC animated:YES completion:nil];
|
|
|
+}
|
|
|
+- (void)didStartLoading
|
|
|
+{
|
|
|
+}
|
|
|
+- (void)didReceiveServerRedirectForProvisionalNavigationWithUrl:(NSURL *)url
|
|
|
+{
|
|
|
+}
|
|
|
+- (void)didFinishLoadingWithSuccess:(BOOL)success url:(NSURL *)url
|
|
|
+{
|
|
|
+}
|
|
|
+- (void)webDismiss
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
@end
|