Skip to main content
0 votes
0 answers
81 views

I’m trying to implement this iOS delegate method in Delphi: - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request ...
zeus's user avatar
  • 13.3k
0 votes
0 answers
46 views

I am trying to learn about making http requests using Swift but for some reason i cannot get the getPosts() method to print anything. It keeps skipping over the dataTask and prints after it. I ...
Vishwajith's user avatar
1 vote
2 answers
267 views

I know this is impossible because I've spent hours on it and also read these below but I am determined to approximate a clang block forward definition even if it takes linker tricks or inline assembly:...
Sam Liddicott's user avatar
0 votes
1 answer
74 views

I'm newish to objective C and and have a question about code from this example project from Apple showcasing some Metal features. The code contains a few blocks sitting inside of the function scope. ...
Unsatisfied Zebra's user avatar
0 votes
1 answer
34 views

A viewcontroller is the child of tabbarcontroller, it has a tableview, when the tableview grinds to a halt, one of three methods is executed. - (void)scrollViewDidEndDragging:(UIScrollView *)...
ming's user avatar
  • 15
0 votes
1 answer
63 views

This is the most minimal example I could think of: #import <Foundation/Foundation.h> @interface ObjCClass:NSObject @property void (^aBlockInner) (); -(void)method; -initWithBlock:(void (^)())...
Spyros Mourelatos's user avatar
1 vote
1 answer
125 views

I have a piece of ARC code written in Objective-C that is creating a block and will want to provide it to some Objective-C MRC code as a callback, to be called when an operation finishes. What is the ...
tudors's user avatar
  • 23
1 vote
0 answers
144 views

I'm writing a Qt app on iOS which uses the MLKit FaceDetector. I have a FaceDetector class which has the following method: void FaceDetector::runFaceDetection(const QImage &image) { // ...
Teee's user avatar
  • 71
3 votes
0 answers
3k views

I noticed a function named block_destroy_helper in this crash log from my iOS app. I want to know more what is this function, but I can't find any useful information. I just want to know the ...
Chalermpong Satayavibul's user avatar
2 votes
0 answers
44 views

Sometimes, we can see some log trace with line number as 0 as the following: Thread 21 Crashed: 0 libobjc.A.dylib 0x00000001a04cf28c objc_release + 16 1 MyApp ...
Bill David's user avatar
4 votes
1 answer
1k views

I have a Swift object that takes a dictionary of blocks (keyed by Strings), stores it and runs block under given key later at some point depending on external circumstances (think different behaviours ...
raven_raven's user avatar
0 votes
0 answers
663 views

There is a crash in the application I am working on. The following is the crash log: Exception Type: SIGSEGV Exception Codes: SEGV_MAPERR at 0xf86985380 Crashed Thread: 4 Thread 4 Crashed: 0 ...
Bill David's user avatar
0 votes
1 answer
833 views

I'm using https://github.com/nodejs/http-parser, the callbacks it uses are like this struct http_parser_settings { http_cb on_message_begin; http_data_cb on_url; http_data_cb on_status; ...
GP89's user avatar
  • 6,760
4 votes
1 answer
74 views

I would expect copy on an object to generate a new object. But it seems it will only generate a different one and may reuse it for another copy. void (^block1)(void) = ^ { // ... }; void (^block2)(...
Bill David's user avatar
2 votes
2 answers
152 views

as the question described, will the wSelf in block become dangling? 1 void bindDefaultCallbacks { 2 __weak typeof(self) wSelf = self; 2 [sessionManager setDataTaskDidReceiveDataBlock:^(...
Berte Colin's user avatar

15 30 50 per page
1
2 3 4 5
175