ASIHTTPRequest / ASIFormDataRequest - referencing request object within blocks under ARC

后端 未结 3 1513
北荒
北荒 2020-12-08 15:40

Very similar to this question, I am trying to convert a project that uses ASIHTTPRequest & ASIFormDataRequest to ARC.

In my view contr

3条回答
  •  天命终不由人
    2020-12-08 16:14

    If you're targeting iOS versions before 5.0, that do not include weak support:

    __unsafe_unretained __block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
    

提交回复
热议问题