草庐IT

page_request

全部标签

iphone - Restkit Objective-C : Post request only works once

我正在使用Restkit与DrupalCMS进行通信。当我发送首先请求一切正常:我得到正确的JSON-字符串->太棒了。控制台是这样说的:2011-06-2423:00:48.344MyApp[1399:207]SendingPOSTrequesttoURLhttp://mysite.com/myproject/services/rest/service_views/get.json.HTTPBody:view_name=viewsname如果应用程序尝试再次发送相同的请求,则不会发生任何事情。没有任何委托(delegate)方法被调用。控制台说:2011-06-2423:03:40.

ios - facebook ios sso 出现 "safari cannot open page"错误

我一直在为android和iphone开发一个应用程序,并且能够在android上实现sso但是当我尝试在iOS上实现它时我得到了上面提到的错误:"Safaricannotopenthepagebecausetheaddressisinvalid"点击“确定”将我在facebook上的个人信息权限授予应用程序后显示错误有问题的链接是:m.facebook.com/dialog/oauth?refid=0这是我的info.plist文件CFBundleIconFilesicon.pngicon@2x.pngicon-72.pngUISupportedInterfaceOrientatio

iphone - 从 google places API 获取数据后获取状态 "REQUEST_DENIED"

我做到了NSURLRequest*request=[NSURLRequestrequestWithURL:[NSURLURLWithString:@"https://maps.googleapis.com/maps/api/place/search/json?location=30.722322,76.76126&radius=500&types=food&sensor=true&key=any_apiKey"]];NSURLResponse*response;NSError*error;NSData*responseData=[NSURLConnectionsendSynchrono

ios - 在 NativeScript 中执行 XHR-Request 时出现 UICollectionViewFlowLayout 异常

我试图通过Xcode7对给定的API执行POST请求。我的错误是:thebehavioroftheUICollectionViewFlowLayoutisnotdefinedbecause:theitemheightmustbelessthantheheightoftheUICollectionViewminusthesectioninsetstopandbottomvalues,minusthecontentinsetstopandbottomvalues.TherelevantUICollectionViewFlowLayoutinstanceis,anditisattachedt

ios - 显示pdf时是否可以在UIwebview中删除["Page 1 of 20" View ]?

经过多次谷歌搜索,我无法找到解决方案。我有一个带有PDF的UIWebView。我不想要View:“第1页,共20页”查看PDF文件时左上角的小View。可以删除这个吗? 最佳答案 Swift3和WKWebView我获取了WKWebView的所有subview,然后删除了WKPDFPageNumberIndicator:funcwebView(_webView:WKWebView,didFinishnavigation:WKNavigation!){letwebViewSubviews=self.getSubviewsOfView(v

ios - AF 网络 2.0 : is it possible to put pure json in the body of a POST request?

我想从我的应用程序发出以下请求:AFHTTPRequestOperationManager*requestManager=[[AFHTTPRequestOperationManageralloc]init];requestManager.responseSerializer.acceptableContentTypes=[requestManager.responseSerializer.acceptableContentTypessetByAddingObject:@"application/json"];requestManager.requestSerializer=[AFJSO

ios - 错误域=com.alamofire.error.serialization.response 代码=-1011“请求失败 : bad request (400)

我正在使用AFnetworking库在服务器上发布数据。以下是我在服务器上发布数据的代码。-(void)callLoginAPI:(NSDictionary*)dictProfile{//1NSDictionary*params=[NSDictionarydictionaryWithObjectsAndKeys:[dictProfilevalueForKey:@"name"],@"username",[dictProfilevalueForKey:@"first_name"],@"first_name",[dictProfilevalueForKey:@"last_name"],@"l

ios - TestFlight 错误 "Your request couldn' t 完成”?

我正在使用TestFlight测试iOS应用程序。我已经成功测试了8Build预发布版,但现在它不再工作了。我已经上传了构建的并且它已经得到Apple的批准,已经发送并正确接收了对外部测试人员的邀请,但是当他们打开TestFlight并尝试下载应用程序时,下载就在结束前停止,并且alertView说:Yourrequestcouldn'tbecompleted注意事项:我试过在不同的设备上下载,但都没有用。如果没有完成下载,TestFlight也会增加安装计数。我今天早上上传了构建的。 最佳答案 找到解决方案。最新的XCode版本将

ios - 跨域资源共享问题 : both OSX Safari and iOS Safari fail after preflight request

最近我在OSX和iOS的Safari上遇到了CORS(跨源资源共享)请求的问题,而同样的请求在Chrome和Firefox上运行得很好。我关注thedocumentationofW3C并在服务器端处理预检请求,我的响应如下:HTTP/1.0200OKAccess-Control-Allow-Origin:http://192.168.1.96:4399Access-Control-Allow-Methods:POSTAccess-Control-Allow-Methods:GETAccess-Control-Allow-Methods:OPTIONSAccess-Control-All

ios - Facebook iOS SDK : How to handle SKIP button when requesting publish_actions?

我有一个使用“publish_actions”权限登录Facebook的代码。这是片段:NSArray*facebookPermissions=[NSArrayarrayWithObjects:@"publish_actions",nil];[FBSessionopenActiveSessionWithPublishPermissions:[selffacebookPermissions]defaultAudience:FBSessionDefaultAudienceFriendsallowLoginUI:YEScompletionHandler:^(FBSession*session