drupal-ios-sdk -


MPL
iOS
Objective-C

软件简介

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]);
  }];