Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 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
1 vote
2 answers
265 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
30 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
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
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
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
1 answer
824 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
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
2 votes
1 answer
318 views

I created a simple code and found there is a memory leak: #import <Foundation/Foundation.h> #include <functional> void testLeaks(const std::function <void (int)>& inCallback) { ...
android2test's user avatar
0 votes
1 answer
521 views

I am new to blocks. I am trying to analyze how the following code works. As i understand this specific method has a block and returns a NSURLSessionDataTask . getTotalFollowersFrom is the name of ...
stefanosn's user avatar
  • 3,324
0 votes
1 answer
207 views

In the print preview screen, if no printer is connected, click on the print button, a popover is displayed in iOS 15 containing the Copy and Save to files option. I want to remove this popover, As ...
Tarun Kumar's user avatar
0 votes
0 answers
129 views

We have an application that has some code similar to the following: [UIView animationWithDuration: 0.7f animations { // Some animations }]; [NSRunLoop currentRunLoop] runUntilDate: [NSDate ...
Starman's user avatar
  • 11
0 votes
0 answers
285 views

I am facing clang error when I am trying to run the source in Xcode 12.5 But it is working fine in 11.4 In file included from :1: PrefixHeader.pch:15:2: fatal error: malformed or corrupted AST file: '...
Sushmitha's user avatar
0 votes
0 answers
50 views

Basically I have an existing API manager that is blocking me from going forward. This existing manager is something I should not mess with right now. This is the gist of my problem. I mean, I can go ...
user12353234's user avatar
1 vote
1 answer
195 views

Just got my first job as a Junior iOS. I am going to work with Objective-C a lot which I have little familiarity with, therefore I hope you can forgive me these simple questions. I had this bit of ...
Jakub Gawecki's user avatar
1 vote
1 answer
841 views

The scenario: the user is presented with a UIAlertController that has a button, with a handler block that updates the UI to indicate the button press. The code in the handler block is wrapped in a ...
software evolved's user avatar
2 votes
1 answer
162 views

The following code causes an EXC_BAD_ACCESS upon attempting to set *error. - (void)triggerEXC_BAD_ACCESS { NSError *error = nil; [self doSetErrorInBlock:&error]; } - (void)...
peco's user avatar
  • 1,451
1 vote
1 answer
76 views

I am passing a parameter to a function, and I need to hold its reference in a block. The block will be executed at a later time. If I dont hold this reference, I get invalid memory access crash when ...
Sakshi Malhotra's user avatar
1 vote
2 answers
365 views

I have a chain of many NSBlockOperations with dependencies. If one operation early in the chain fails - I want the other operations to not run. According to docs, this should be easy to do from the ...
Motti Shneor's user avatar
  • 2,214
3 votes
1 answer
341 views

I am writing a C program that uses Apple's Blocks extension to provide lexical closures. I am also using the Boehm garbage collector. What I would like is for Block_copy() to use GC_MALLOC when ...
StavromulaBeta's user avatar
2 votes
2 answers
1k views

"Xcode 12.0 (12A7209)" shows compile error against Cocos3D library (written in Objective-C) in the following code: (The past versions of Xcode ((ie ver.11, 10), including ver 11.7(11801a)) ...
s4mt6's user avatar
  • 143
2 votes
1 answer
76 views

Some OBJECTIVE-C blocksyntax help, please. This is my call site (AppDelegate) - autocompleted by XCode Objective-C [SwiftClass passValue: response completion:^(NSDictionary<NSString *,NSString *&...
valeriana's user avatar
  • 159
0 votes
1 answer
62 views

G'day! Note: Minimal example linked below. I'll refrain from longish code excerpts and rather explain the problem concisely. I am in the process of updating an old (but small) Cocoa application to ...
Tanuva's user avatar
  • 161
0 votes
1 answer
47 views

I have what I thought was a very simple case of animation. There is a view that sits at 0 alpha unless it becomes 1 until a future animation with one type of event, or becomes 1 for a few seconds with ...
Ecuador's user avatar
  • 1,260
0 votes
1 answer
27 views

I have a iOS app where at a given moment I have do 1+ async api calls which needs to be completed before I can send the final async call to my server. What is the best way to do it? e.g. Start async ...
user3570727's user avatar
  • 10.2k

1
2 3 4 5
53