我在Android上使用card.io。是否可以在扫描视图中放置取消按钮? iOS有这个选项。
我目前正在将这些额外内容传递给{'ms_request':
{'user':
{'api_key':'',
'username':'',
'password':''
}
}
}
:
NSArray *loginDetails = [self authenticationHelper];
NSDictionary *tmp = [[NSDictionary alloc] initWithObjectsAndKeys:
[loginDetails objectAtIndex:0], @"password",
[loginDetails objectAtIndex:1], @"username",
[loginDetails objectAtIndex:2], @"api_key",
nil];
NSError *error;
NSData *postdata = [NSJSONSerialization dataWithJSONObject:tmp options:0 error:&error];
NSMutableURLRequest *request =
[[NSMutableURLRequest alloc] initWithURL:
[NSURL URLWithString:autheticationURL]];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:postdata];
答案 0 :(得分:0)
在Android中,card.io依赖于后退按钮(硬或软)的事实。因此,没有额外的取消按钮。遗憾。