- 授权协议: MPL
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/workhabitinc/drupal-ios-sdk
- 软件文档: https://github.com/workhabitinc/drupal-ios-sdk/wiki/drupal-ios-sdk-2.0
软件介绍
drupal-ios-sdk 是 Drupal 专为 iOS 开发的 SDK 开发工具包,可在 iOS 上直接访问 Drupal 服务。
示例代码:
NSDictionary *params = [[NSDictionary alloc] initWithObjects:[NSArray arrayWithObjects:@"articles", nid, nil] forKeys:[NSArray arrayWithObjects:@"view_name", @"args", nil]]; [DIOSView viewGet:params success:^(AFHTTPRequestOperation *operation, id responseObject) { [self set_sites:responseObject]; [self.tableView reloadData]; [self stopLoading]; } failure:^(AFHTTPRequestOperation *operation, NSError *error) { #warning We should let the user know rather than dumping a log [self stopLoading]; NSLog(@"Something went wrong: %@", [error localizedDescription]); }];
