52 lines
1.2 KiB
Objective-C
52 lines
1.2 KiB
Objective-C
//
|
|
// DisconnectNetController.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/1/8.
|
|
// Copyright © 2016年 imac. All rights reserved.
|
|
//
|
|
|
|
#import "DisconnectNetController.h"
|
|
#import "MyMD5.h"
|
|
#import "AppDelegate.h"
|
|
#import "LogInViewController.h"
|
|
//#import <RongIMKit/RongIMKit.h>
|
|
#import "AFNetworking.h"
|
|
@interface DisconnectNetController ()
|
|
|
|
@property(nonatomic)UIActivityIndicatorView*indicatorView;
|
|
@end
|
|
extern BOOL formLogIn;
|
|
@implementation DisconnectNetController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view from its nib.
|
|
[self addTitleViewWithTitle:@"爱鱼奇"];
|
|
self.bakbutton.hidden=YES;
|
|
self.view.backgroundColor=COLOR_MIAN;
|
|
|
|
_indicatorView=[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
|
|
_indicatorView.center=CGPointMake(kScreenSize.width/2, kScreenSize.height/2);
|
|
|
|
[self.view addSubview:_indicatorView];
|
|
}
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
|
|
}
|
|
|
|
|
|
- (IBAction)reconnectNetButton:(id)sender {
|
|
[_indicatorView startAnimating];
|
|
[self loginAppAgain];
|
|
|
|
}
|
|
-(void)loginAppAgain{
|
|
|
|
formLogIn=NO;
|
|
[IFISHHTTPTOOL ifishLogindismissvc:self];
|
|
}
|
|
|
|
@end
|