- 博客(8)
- 收藏
- 关注
原创 查看当前设备可用内存与程序占用内存
#pragma mark - 设备可用内存- (double)availableMemory{ vm_statistics_data_t vmStats; mach_msg_type_number_t infoCount = HOST_VM_INFO_COUNT; kern_return_t kernReturn = host_statistics(mach_
2014-08-07 19:04:19 530
原创 异步POST请求
异步 NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kBaseURL,@"/user/create"]]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url cachePolicy:NSURLReq
2014-07-19 17:08:27 388
原创 iOS JSON转化
/字典或者数组转化为nsstring NSArray *arr = [NSArray arrayWithObject:@"1"]; NSString *str = [arr JSONString]; //数组或者字典转化为json串 NSArray *arr1 = [str objectFromJSONString]; //js
2014-04-02 13:55:01 446
原创 Mac版XAMPP 无法启动MySQL和Apache的解决办法
终端输入 sudo killall httpd多运行几次,直到出现No matching processes were found启动Apache 成功终端输入 sudo killall mysql 多运行几次 启动MySQL成功
2014-03-24 10:32:59 519
转载 公共场所扫描全部wifi信息的实现方法
#import #import #import #include #include #include @interface MSNetworksManager : NSObject { NSMutableDictionary *networks; NSArray *types; int autoScanInterval; bool
2014-03-19 15:11:42 438
原创 显示软件新特性
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{//1.创建窗口self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];/
2014-03-18 17:05:26 271
原创 iOS发送邮件功能
- (void)test{NSURL *url = [NSURL URLWithString:@"mailto://lee@chine.pw"];[[UIApplication sharedApplication] openURL:url];} - (void)sendMail{MFMailComposeViewController *vc = [[MFMailComposeVie
2014-03-18 17:01:53 363
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人