Tag: sdk

指针数据不存储在本地数据库parsingios

我有一个包含许多指向另一个类的includeKeys的查询。 在接收到parsing云数据后,所有logging都使用pinAll方法在本地存储。 当我取回存储的结果,我可以得到的logging,但不包括指针。 看下面的示例代码 [query includeKey:@"classOne.innerClass"]; [query includeKey:@"classTwo.innerClass"]; [query includeKey:@"classThree"]; [query includeKey:@"classFour"]; [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error){ [PFObject pinAllInBackground:objects withName:@"LocalRecords" block:^(BOOL succeeded, NSError *error) { }]; }]; 我正在提取logging PFQuery *lquery = [PFQuery queryWithClassName:[ClassName parseClassName]]; [lquery fromPinWithName:@"LocalRecords"]; BFTask *btask = [[lquery findObjectsInBackground] continueWithSuccessBlock:^id(BFTask *task) { if (task.error) { NSLog(@"Error: %@", task.error); return task; } }]; 当我尝试访问classOne,classTwo,classThree和classFour中的任何一列时, […]

通过Facebook iOS SDK获取我所有的活动

在我的iOS应用程序中,我使用以下代码获取访问令牌: [self.facebook authorize:[NSArray arrayWithObjects:@"user_events", @"friends_events", nil]]; 然后我用下面的代码请求我的事件: [self.facebook requestWithGraphPath:@"me/events" andDelegate:friendsVC]; 但作为回应,我只收到了我已经RSVP的事件。 我想要获得我所有的活动,包括我还没有RSVP的活动。 有任何想法吗?

FBSDKShareLinkContent未设置contentDescription和contentTitle

我正在尝试使用FBSDKShareLinkContent在Facebook上分享链接。 我已经设置了url,描述和标题。 SDK通过从contentURL获取的信息自动填充标题和描述。 但是我想设置我在代码中给出的自定义标题和描述。 有没有办法避免这种行为? FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; [content setContentTitle:@"Testing title"]; [content setContentDescription:@"Testing description."]; content.contentURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.google.co.in/"]]; [FBSDKShareDialog showFromViewController:self withContent:content delegate:nil];

iOS(iPhone / iPad)SDK – 应用程序不改变方向

在我的自定义选项卡栏应用程序中,即使强制旋转状态栏,方向也不会改变。 这是我的AppDelegate中的代码: AppDelegate.h: #import <UIKit/UIKit.h> #import "MBProgressHUD.h" @class exampleViewContoller; @class example1ViewController; @class example2ViewController; @class example3ViewController; @class example4ViewController; @interface <appname>AppDelegate : NSObject <UIApplicationDelegate, MBProgressHUDDelegate> { UIWindow *window; UITabBarController *rootController; exampleViewContoller *viewController; example1ViewController *viewController1; example2ViewController *viewController2; example3ViewController *viewController3; example4ViewController *viewController4; NSMutableData *responseData; NSMutableArray *tweets; MBProgressHUD *HUD; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet […]

iOS Google Drive SDK使用关键“webContentLink”将文件加载到UIWebView中

我使用Google Drive SDK在我的iOS应用中实现了与Google云端硬盘的远程连接。 我可以使用GTLServiceDrive类成功访问文件/文件夹列表和元数据,并使用GTLServiceDrive类下载内容。 当我使用GTMHTTPFetcher类下载内容时,我使用GTLServiceDrive key downloadUrl ,并使用一行代码来授权下载 – 按照以下第二行代码进行授权: GTMHTTPFetcher *fetcher = [googleDriveService.fetcherService fetcherWithURLString: << downloadUrl >>]; [fetcher setAuthorizer:googleDriveService.authorizer]; 其中googleDriveService是GTLServiceDrive类的一个实例。 对于位于Google云端硬盘上的某些文件,我可以从两个选项中select我的应用的用户 – 无论他们是要下载副本以保存在设备上,还是仅使用GTLServiceDrive关键字webContentLink维护引用并按需访问内容(无需下载并保存到文档或高速caching)。 对于第二个选项, 我希望我的应用程序在UIWebView显示文件 。 它几乎与以下代码一起工作… …other code to prepare UIWebView… NSURLRequest *request = [NSURLRequest requestWithURL: << webContentLink >>]; [webView loadRequest:request]; 加载Web视图,但提出了OAuthlogin页面,我猜是因为loadRequest:方法要求未经授权访问私人文件。 我注意到… 我已经在初始连接(安装过程)期间设置了OAuth钥匙串项目以检索文件夹&文件列表和元数据。 一旦我第二次使用第二个OAuth视图控制器login,该login看起来会持续下去(不再需要),包括设备closures和重启之后。 也许第二个钥匙链项目自动添加? 是否有一些方法可以使用,类似GTMHTTPFetcher类的authorize属性,允许我在UIWebView显示Google Drive文件,但不要求用户完成第二次login,虽然他们被要求做第二次login只有一次?

为什么iOS SDK和iOS操作系统版本互相影响? 或者:什么是iOS SDK?

编辑: 下面的H2CO3答案让我快乐。 但是它并没有解释一件事情:为什么在构build应用程序对SDK6(UIPageViewController需要一个子控制器,然后将其添加到父控制器中)之前得到一个运行时exception,而不是构build对SDK5时? Rolf的答案解释了发生了什么事情:设备知道应用程序所构build的SDK,其行为有所不同,以确保最大的兼容性。 在与iOS SDK版本,MonoTouch版本和不同的iOS版本战斗时,我开始想知道: 什么是iOS SDK ? 我的意思是,我安装Xcode 4.4,我得到iOS SDK 5.如果我安装Xcode 4.5,我得到的iOS SDK 6.到目前为止没有问题。 现在假设我构build了一个targets iOS 5的应用程序,并且不not use any iOS 6 specific东西。 我只是using iOS SDK 6构build这个应用程序。 然后我构buildsame app但使用iOS SDK 5 。 然后我在iOS 6设备上运行这两个版本的应用程序。 为什么他们的行为有所不同? 有一些小的差异,例如,如果在将页面视图控制器作为子控件添加到父控制器之前未设置子控制器,则UIPageViewController会引发exception。 据我了解,callback,function和一切都来自iOS操作系统,而不是从SDK。 但是两种情况下的操作系统是一样的。 我完全理解,如果我想要使用iOS 6特定function,则需要使用iOS SDK 6,因为SDK 5中不存在UICollectionView。但是,此视图的UI代码显然未包含在我的应用程序中,否则它也可以在iOS5上运行。 所以收集视图来自操作系统提供的共享库。 最重要的是MonoTouch。 如果我们假设每个MonoTouch版本只是绑定的扩展而没有修复任何错误,那么应该使用什么MT版本。 我的问题的简短回顾将是:如何iOS版本,iOS SDK版本,MonoTouch版本和应用程序的目标版本一起玩?

didChangeCameraPosition获取可用坐标的包围盒/矩形

我如何从GMSCameraPosition中检索GMSCoordinateBounds? 我想知道每次用户移动摄像机时地图上的可见坐标(至less东北/西南点): (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:(GMSCameraPosition *)position

使用适用于iOS的SDK将video发布到Facebook时出错

我有一个应用程序,本地(MOV文件)video到Facebook使用Facebook SDK的iOS。 它直到几个星期前没有问题,它开始失败,出现以下错误: error = { code = 352; message = "(#352) Sorry, the video file you selected is in a format that we don't support."; type = OAuthException; }; 完整的错误string是: 错误域= com.facebook.sdk代码= 5“该操作无法完成(com.facebook.sdk错误5.)”UserInfo = 0x1ea42880 {com.facebook.sdk:HTTPStatusCode = 400,com.facebook.sdk :ParsedJSONResponseKey = {body = {error = {code = 352; message =“(#352)抱歉,您select的video文件采用了我们不支持的格式。 type = OAuthException; }; }; […]

我可以在Xcode 4的DeviceSupport文件夹中删除以前版本的iphone支持吗?

在我查找Xcode为什么这么大的时候,我发现子文件夹占用了大量的空间到Developer> Platforms> iPhoneOS.platform> DeviceSupport文件夹。 由于我(显然)只允许在Xcode的最后一个开发,我可以安全地删除其余(在这种情况下3.0至4.2.1)? 同样的问题关于开发人员>平台> iPhoneSimulator.platform>开发人员> SDK的子文件夹..

Facebook的iOS SDK – 发送一个Facebook用户的应用程序请求

即时通讯使用facebook iOS SDK通过Facebook发送应用程序请求,即时通讯使用以下代码: NSString *message = [[NSString alloc] initWithFormat:@"blah blah blah"]; NSString *data = [[NSString alloc] initWithFormat:@"blah blah blah"]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:message, @"message", data, @"data", nil]; [_facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/apprequests",userID] andParams:params andHttpMethod:@"POST" andDelegate:self]; [message release]; [data release]; 这给了我以下错误: Error: Error Domain=facebookErrDomain Code=10000 "The operation couldn't be completed. (facebookErrDomain error 10000.)" UserInfo=0x788c5b0 {error=<CFBasicHash 0x788c080 [0x1bf53e0]>{type […]