ios学习笔记---simpleping
来源:互联网 发布:校园女生暴力数据 编辑:程序博客网 时间:2024/05/29 08:19
下载地址:https://github.com/chrishulbert/SimplePingHelper
只需要把SimplePing.h,SimplePing.m,SimplePingHelper.h,SimplePingHelper.m引入到项目中
//
// ViewController.m
// SimplePing
//
// Created by 宝 on 15-3-27.
// Copyright (c) 2015年 rcm. All rights reserved.
//
#import "ViewController.h"
#import "SimplePingHelper.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[superviewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString *ipAddress = @"192.168.1.20";
[SimplePingHelper ping:ipAddresstarget:self sel:@selector(pingServerResult:ipAddress:)];
}
- (void)pingServerResult:(NSNumber*)success ipAddress:(NSString*)ipAddress {
NSLog(@"pingServerResult: %@ %@", success, ipAddress);
}
- (void)didReceiveMemoryWarning {
[superdidReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
- ios学习笔记---simpleping
- SimplePing
- IOS 一个ping的例子 simplePing
- IOS 一个ping的例子 simplePing
- SimplePing的使用
- iOS UIResponder 学习笔记
- ios学习笔记
- iOS 学习笔记
- IOS学习笔记
- ios学习笔记(转)
- ios MapKit学习笔记
- IOS学习笔记1
- ios学习笔记
- IOS UITableView 学习笔记
- IOS学习笔记3
- IOS MapKit学习笔记
- iOS学习笔记
- IOS 学习笔记
- Combine Two Tables
- ADF: 如何在首次进入页面时避免table自动执行view object的查询
- 管理及IO重定向
- sonar 搭建
- Oracle 取随机数
- ios学习笔记---simpleping
- 解决HTTP Status 405 - HTTP method POST is not supported by this URL 详解方案
- Python 机器学习工具库
- 字典树 ,map 容器 hdu 1251
- Linux下修改某个用户使用时的编码
- StackWalk64
- Struts2中Session的使用
- 盘点2013:21款最优秀的开源数据库
- javascript Ajax 学习总结