iOS-System-Services

1. 使用

将压缩包中的System Services文件夹导入项目,如果Utilities文件夹中存在route.h文件,则删除。


iOS iOS-System-Services(系统信息)
图1.png

2. 修改

将SSNetworkInfo.m中的第18行#include "route.h"修改为#import <net/route.h>

iOS iOS-System-Services(系统信息)
图2.png

3. 使用

1). 导入头文件SystemServices.h
2). 打印

#import "ViewController.h"
#import "SystemServices.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSLog(@"All System Information: %@", [SystemServices sharedServices].allSystemInformation);
}

@end

相关文章:

  • 2021-09-03
  • 2021-06-21
  • 2021-05-18
  • 2021-07-09
  • 2022-12-23
  • 2021-07-27
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-12-26
  • 2021-05-26
  • 2021-08-14
  • 2022-02-10
相关资源
相似解决方案