Skip to content

Commit fbb8c46

Browse files
committed
更新
1 parent cb65dd4 commit fbb8c46

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
-212 Bytes
Binary file not shown.

CoreStatus/ViewController.m

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ @implementation ViewController
2323
- (void)viewDidLoad {
2424
[super viewDidLoad];
2525

26-
NSString * statusString = [CoreStatus currentNetWorkStatusString];
27-
28-
NSLog(@"%@",statusString);
26+
[self showText];
2927

3028
[CoreStatus beginNotiNetwork:self];
3129

@@ -40,11 +38,18 @@ -(void)coreNetworkChangeNoti:(NSNotification *)noti{
4038

4139
NSLog(@"%@\n\n\n\n=========================\n\n\n\n%@",noti,statusString);
4240

41+
42+
[self showText];
43+
}
44+
45+
-(void)showText{
46+
NSString * statusString = [CoreStatus currentNetWorkStatusString];
4347
self.showLabel.text = statusString;
4448
[self.showLabel.layer transitionWithAnimType:TransitionAnimTypeRamdom subType:TransitionSubtypesFromRamdom curve:TransitionCurveRamdom duration:.5f];
45-
4649
}
4750

51+
52+
4853
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
4954
NSString * statusString = [CoreStatus currentNetWorkStatusString];
5055

0 commit comments

Comments
 (0)