ios - Cancel content editing input request -
in app when download contenteditinginput
, user can selected new asset, i've tried kill previous request before starting new one. unfortunately cancelcontenteditinginputrequest:
doesn't work , still progress , completion block fired when downloading done. self.asset
, self.requestid
have expected values. problem present when downloading asset icloud. did use api wrong way?
if(self.requestid) { [self.asset cancelcontenteditinginputrequest:self.requestid]; } phcontenteditinginputrequestoptions *options = [phcontenteditinginputrequestoptions new]; options.networkaccessallowed = yes; options.progresshandler = ^(double progress, bool *stop) { // update ui }; self.asset = newasset; self.requestid = [self.asset requestcontenteditinginputwithoptions:options completionhandler:^(phcontenteditinginput *contenteditinginput, nsdictionary *info) { self.requestid = 0; // handle content editing input }];
i right me being wrong. have used api wrong way. cancelcontenteditinginputrequest:
used cancel preparing contenteditinginput asset on device. cancel download icloud 1 should use:
options.progresshandler = ^(double progress, bool *stop) { *stop = yes; };
it different topic, if api logical...
Comments
Post a Comment