iOS iOS-System-Services(系统信息)
1. 使用
将压缩包中的System Services文件夹导入项目,如果Utilities文件夹中存在route.h文件,则删除。
2. 修改
将SSNetworkInfo.m中的第18行#include "route.h"
修改为#import <net/route.h>
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

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
-
上一篇
官方源、镜像源汇总
站点版 (一)、企业站 搜狐:http://mirrors.sohu.com/ 网易:http://mirrors.163.com/ 阿里云:http://mirrors.aliyun.com/ 腾讯:http://android-mirror.bugly.qq.com:8080/(仅针对APP开发的软件,限流,不推荐) 淘宝:http://npm.taobao.org/ (二)、教育站 上海交通大学:http://ftp.sjtu.edu.cn/html/resources.xml(部分移动运营商出口状况不佳,无法访问) 华中科技大学:http://mirror.hust.edu.cn/(当前已用容量估计:4.83T) 清华大学:http://mirrors.tuna.tsinghua.edu.cn/(当前已用容量估计:9.8T) 北京理工大学:http://mirror.bit.edu.cn/web/ 兰州大学:http://mirror.lzu.edu.cn/ 中国科技大学:http://mirrors.ustc.edu.cn/(当前已用容量估计:21.32T) 大连东软信息学院...
-
下一篇
iOS ContactsUI(联系人)
1. 带UI的通讯录 #import "ViewController.h" #import <AddressBookUI/AddressBookUI.h> @interface ViewController ()<ABPeoplePickerNavigationControllerDelegate> @end @implementation ViewController // 触摸显示 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { //1. 创建联系人选择控制器 ABPeoplePickerNavigationController *picker = [ABPeoplePickerNavigationController new]; //2. 设置代理 --> 注意不是 Delegate picker.peoplePickerDelegate = self; //3. 模态视图弹出 [self presentViewController...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- Eclipse初始化配置,告别卡顿、闪退、编译时间过长
- Springboot2将连接池hikari替换为druid,体验最强大的数据库连接池
- SpringBoot2编写第一个Controller,响应你的http请求并返回结果
- CentOS关闭SELinux安全模块
- SpringBoot2全家桶,快速入门学习开发网站教程
- Docker使用Oracle官方镜像安装(12C,18C,19C)
- Docker快速安装Oracle11G,搭建oracle11g学习环境
- CentOS8编译安装MySQL8.0.19
- SpringBoot2配置默认Tomcat设置,开启更多高级功能
- MySQL数据库在高并发下的优化方案