Tag: sdk

IOS 5.1备份/恢复应用程序文件从文件目录到/从iCloud

我为iPad创build了一个带有XCode 4.3.3的数据库(IOS 5.1),并已经设置好了,以便用户可以将数据库文件(* .sqlite)备份和恢复到DropBox。 一切工作正常… 现在我想要做相同的过程,但是,为iCloud设置它。 寻找以下function: 点按一个button,将用户首选项中的* .sqlite文件从“应用程序文档目录”备份到iCloud。 点击一个button将* .sqlite文件从iCloud复制到应用程序文档目录。 我一直在努力寻找解决scheme,任何帮助将不胜感激。

用于IOS的XMLparsing器SDK

我需要能够为我正在处理的项目parsingXML。 我怎样才能从一个网页parsingXML到iPhone然后阅读它的内容?

如何将文件夹上传到Google Driver IOS App中的appDataFolder

如何上传Google云端硬盘的appDataFolder上的文件夹,我正在尝试下面的代码,但不能正常工作。 所以,可以任何朋友请帮助我上传从iOS应用程序的谷歌驱动器中的文件夹。 GTLServiceDrive *drive= [self driveService]; GTLDriveFile *folder = [GTLDriveFile object]; folder.mimeType = @"application/vnd.google-apps.folder"; folder.parents = @[appDataFolder]; GTLUploadParameters *uploadParameters = [GTLUploadParameters uploadParametersWithData:data MIMEType:@"application/vnd.google-apps.folder"]; GTLQueryDrive *query = [GTLQueryDrive queryForFilesCreateWithObject:folder uploadParameters:uploadParameters]; //query.q = [NSString stringWithFormat:@"appDataFolder"]; [drive executeQuery:query completionHandler:^(GTLServiceTicket *ticket, GTLDriveFile *updatedFile, NSError *error) { if (error == nil) { } else { } }];

什么是“保存”iPad项目的正确方法?

我想根据我现有的build立一个新的项目。 由于有内部名称需要改变,以符合项目文件名,我不知道简单的方法来做到这一点没有一团糟。

如何获得与谷歌驱动器的iOS应用程序中的video和audio文件

我在我的谷歌驱动器中有一些video和audio文件,现在我已经在我的应用程序中集成了goolge驱动器sdk。 我想从谷歌驱动器获取video和audio文件,并显示在iOS应用程序 我怎样才能做到这一点

NSTimer不间断内存增加 – iOS的错误?

我正在使用仪器计算iPad应用程序的内存问题 – 查看总体分配的字节数。 我的NSTimer导致字节不断增加,同时注释它会导致内存使用保持静态。 从我的视图控制器的viewDidLoad: tickTime = 1.0 / 30.0; tickTimer = [NSTimer scheduledTimerWithTimeInterval:tickTime target: self selector:@selector(update2) userInfo: nil repeats: YES]; 而方法update2: – (void) update2 { } 正如你所看到的,这个方法没有任何东西 – 但是应用程序的内存使用量不断增长。 如果我注释掉设置定时器的行,内存使用率保持不变。 这是iOS SDK中的错误吗? 有谁知道一个解决方法?

找不到Xcode CoreFoundation / CFUserNotification.h'文件

我不知道为什么我这样做,当我在xcode4.6build立一个iPad项目。 iOS sdk 6.1,模拟器6.1。 /Applications/Xcode4.6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:92:10: 'CoreFoundation/CFUserNotification.h' file not found In file included from /Applications/Xcode4.6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:5:10

如何将button添加到iPadpopup窗口中的工具栏?

希望有人在这里征服了这个,因为这让我疯狂。 我的应用程序包含一个用于input和编辑信息的popup窗口。 今天我学到了可以在popover底部显示一个工具栏,这很好 – 除了我不能在我的生活中得到任何button显示在工具栏上。 这是我们开始的地方: UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController: editorViewer]; //*** This makes the toolbar visible [navigationController setToolbarHidden:NO animated:NO]; //*** Create a 'trash' button UIBarButtonItem *trashButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target: nil action: @selector(deleteItem)]; //*** Create an array of buttons NSArray *buttons = [NSArray arrayWithObjects: trashButton, nil]; 我已经尝试了以下每一个添加button,没有成功: navigationController.toolbar.items = buttons; 和 […]

Spotify iOS SDK Swift显示所有(!)播放列表(20+)

我能够很容易地在Swift中获得前20个播放列表。 func getPlaylists() { //DispatchQueue.global(qos: .userInitiated).async { let playListRequest = try! SPTPlaylistList.createRequestForGettingPlaylists(forUser: session.canonicalUsername, withAccessToken: session.accessToken) Alamofire.request(playListRequest) .response { response in let list = try! SPTPlaylistList(from: response.data, with: response.response) for playList in list.items { if let playlist = playList as? SPTPartialPlaylist { let currentPlaylist: PlaylistItem = PlaylistItem(playlistName: playlist.name, playlistURL: playlist.uri.absoluteString) self.playlists.append(currentPlaylist) } } self.tableView.reloadData() } 到现在为止还挺好。 […]

UITableViewCell var“表视图单元格”从来没有变异

在swift 2.0中,当我试图制作UITableViewCell自定义类的var对象时,swiftbuild议我将它转换为“let”,因为对象从来没有发生过变化。 我在UITableViewCell上有一个UIButton,但它被重命名为ABC的button的touchupinside方法调用,如果我让它的对象“让” 参考下面的一段代码: var nameCell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(nameCellIdentifier, forIndexPath: indexPath) switch indexpath.row{ case 0: nameCell.customButton.titleLabel!.text = "ABC" case 1: nameCell.customButton.titleLabel!.text = "DEF" case 2: nameCell.customButton.titleLabel!.text = "GHI" } return nameCell 结果: var nameCell从来没有突变转换为让