if ([urlStr hasPrefix:@"XXXXX"]) {
if (bcVc == nil) {
bcVc = [[NewBCShowViewController alloc]init];
}
// 取得用户id
NSArray *array = [urlStr componentsSeparatedByString:@"&"];
bcVc.userId = [array lastObject];
ASLog(@"%@",bcVc.userId);
bcVc.address = @"2";
// order.orderDetailUrl = absUrl;
[self.navigationController pushViewController:bcVc animated:YES];
从URL中取到你需要的XXXX 对其操作 DEMO如上