![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
文章平均质量分 60
ChineLee
生于忧患死于安乐
展开
-
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 · 380 阅读 · 0 评论 -
查看当前设备可用内存与程序占用内存
#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 · 543 阅读 · 0 评论 -
iOS 8 体验
第一时间更新到iOS 8原创 2014-06-03 14:10:23 · 401 阅读 · 0 评论 -
异步POST请求
异步 NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kBaseURL,@"/user/create"]]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url cachePolicy:NSURLReq原创 2014-07-19 17:08:27 · 400 阅读 · 0 评论 -
iOS JSON转化
/字典或者数组转化为nsstring NSArray *arr = [NSArray arrayWithObject:@"1"]; NSString *str = [arr JSONString]; //数组或者字典转化为json串 NSArray *arr1 = [str objectFromJSONString]; //js原创 2014-04-02 13:55:01 · 457 阅读 · 0 评论 -
公共场所扫描全部wifi信息的实现方法
#import #import #import #include #include #include @interface MSNetworksManager : NSObject { NSMutableDictionary *networks; NSArray *types; int autoScanInterval; bool转载 2014-03-19 15:11:42 · 449 阅读 · 0 评论 -
显示软件新特性
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{//1.创建窗口self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];/原创 2014-03-18 17:05:26 · 282 阅读 · 0 评论