ios - Can hook +[NSURLSession sessionWithConfiguration:delegate:delegateQueue:] but calling %orig gives "unrecognized selector" -
This is bothering me that I have no problem with the class methods on NSURLConnection
Bent, but I have been configured with + [NSURL session session]: Representative Qi:]
.
I also tried class_copyMethodList (object_getClass ([NSURLSession class]), and entering all class methods with counting;
and class method is actually there: Session Code: Representative Que: Initialize
And weird thing is called hook, so I think we got it right. Calling % orig ()
And the only parameter below is yielding:
end the application due to an incomplete exception 'N SInvalidArgumentException ', reason:' + [NSRL session with session session: Representative: Representative: statute]]: 0x1919932b8 '
has been sent to the unrecognized selector for the class:
(Prefix) * (NSURLSession *) sessionWithConfiguration: (NSURLSessionConfiguration *) Configuration Rep , Queue); return origination;}Am I missing anything?
Setup Details: Mac OS X 10.9.5 iPad Air 1 iOS 7.1.2
+ (NSURLSession *) sessionWithConfiguration: (NSURLSessionConfiguration *) Configuration Representative: (ID) Representative representative QE: (NSOction que * *) Queue {NSWLS session * Session = [configuration with NSLRL sessions session: Configuration Representative: Self-representative: question]; }
Representative QE specifies NSOperationQueue. If your code requires representative Qi instead of a bid, you should declare a queue.
Comments
Post a Comment