小编din*_*rya的帖子

将旧的xcode项目迁移到最新版本

我对旧的xcode项目的内存管理和泄漏(对象的潜在泄漏)存在问题.可以使用自动引用计数将这些项目迁移到新的xcode4.5以克服上述问题.如果这可能意味着我怎么能做到这一点?这是正确的方式还是其他什么方法?

xcode4.5

8
推荐指数
1
解决办法
217
查看次数

PayPal令牌尚未收到进行此交易

在iPhone应用程序中,当使用Paypal沙盒测试帐户结账选定的购物车项目时,我得到错误"PayPal令牌尚未收到进行此交易".任何人都可以澄清错误是在服务器端还是应用端?我的代码是---

- ( IBAction ) btnPaybyClicked:( id ) sender {
    HUD = [[MBProgressHUD showHUDAddedTo:self.navigationController.view animated:YES] retain];
    HUD.labelText = NSLocalizedString(@"hud_redirecting_to_paypal", @"");
    JBMLog(@"strPaypalDevicetoken %@", _strPaypalDevicetoken);

//    NSLog(@"strPaypalDevicetoken %@", _strPaypalDevicetoken);

    //NSURL *url = [NSURL URLWithString:PAYPAL_URL];
    NSURL *url = [NSURL URLWithString:PAYPAL_AIW_URL];
    NSLog(@"URLlll = %@",url);
    User *currentUserObj = [UserDefaults getUserProfile];

    float deliveryCharge = 0.0;

    _asiFormRequest = [ASIFormDataRequest requestWithURL:url];
    [_asiFormRequest addRequestHeader:@"Content-Type" value:@"application/x-www-form-urlencoded"];
    [_asiFormRequest setPostValue:[sender tag] == 0 ? PAYPAL_PAYWITH_PAYPAL: PAYPAL_PAYWITH_CREDITCARD forKey:@"landingPage"];
    [_asiFormRequest setPostValue:[NSNumber numberWithInt:currentUserObj.userId] forKey:@"userid"];
    [_asiFormRequest setPostValue:[NSString stringWithFormat:@"%@ %@", currentUserObj.firstName, currentUserObj.lastName] forKey:@"custName"];
    [_asiFormRequest setPostValue:currentUserObj.address forKey:@"custAdress"];
    [_asiFormRequest …
Run Code Online (Sandbox Code Playgroud)

xcode4.5

5
推荐指数
0
解决办法
72
查看次数

标签 统计

xcode4.5 ×2