01 2013 档案
摘要:NSData* sendData = [self.fileName.text dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary *sendDictionary = [NSDictionary dictionaryWithObject:sendData forKey:@"name"]; AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:remoteUrl]; NSMutableURLRequest *afRequest = [httpCl.
阅读全文
摘要:@{ }<!DOCTYPE html><html lang="zh"> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /><script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"> </script> <
阅读全文
摘要:代码片段,google了半天,找到的都是4.5 rc,或之前版本的代码,发现都不能用,正式版后有些方法做了修改。我重新修改一下分享给大家public static class HttpRequestMessageExtensions { public static string QueryString(this HttpRequestMessage request, string name) { string requestUri = request.RequestUri.Query; string[] querie...
阅读全文
摘要:Eduasync part 5: making Task<T> awaitableInpart 3we looked at what the C# 5 compiler required for you to "await" something. The sample used a class which actually had an instance method called GetAwaiter, but I mentioned that it could also be an extension method.In this post, we'
阅读全文