Questions tagged [completion-block]
54 questions
0
votes
0 answers
Update completion handler outside declared method
I have been trying various solutions to get an updated value of handler from methodTwo and methodThree. The code starts with methodOne(), followed by methodTwo(). How to approach this puzzle?
These methods are declared inside a static library. And…

raurora
- 3,623
- 1
- 22
- 29
0
votes
0 answers
iOS wait for pdf to generate and attach to email
I am generating a pdf from html and attaching to email. The problem I have is the pdf is attaching to the email before it has finished generating.
I have tried using a completion block but without success.
@property (nonatomic, strong)…

paulco
- 23
- 3
0
votes
1 answer
Custom segue transition with completion block & properties
I want to make a custom transition between view controllers, a slide from left to right like the iOS Basic Transition Effect between pages in the AppLaucher, but with a darkening.
I have a custom segue between viewControllers (let's call them…

Morpheus
- 1,189
- 2
- 11
- 33
0
votes
0 answers
SKAction runAction:completion block not called
I have a game which is made in SpriteKit. I have made it based on the 7.1 SDK, but now I have to make it work on 7.0 as well. So everything is OK, except that one of my completion blocks does not run on 7.0. Here is the…

damjandd
- 708
- 2
- 9
- 24
0
votes
1 answer
Completion blocks
In my viewController i create an instance of the class QuestionParser which will start a xml parser. My question is: IS there the possibility so the parser will not finish parsing before the program reaches compblock, thus returning nil argument or…

Macaret
- 797
- 9
- 33
0
votes
2 answers
Animation completion block running too soon
I am trying to move a plane along a path as the user is defining it, similar to the controls in Flight Control. I am able to draw the path, albeit inefficiently, but I cannot get the plane to animate along the path smoothly.
I originally tried to…

LunaEques
- 178
- 2
- 8
0
votes
5 answers
Method inside another method completion wait
How can I wait for some method to complete and then continue work ??
- (void)loadMoreDataOnBottomOfTableview
{
NSLog(@"LOADING ITEMS ON BOTTOM");
[self refreshStream];
[self.mainTableView reloadData];
...
}
So I need to wait refreshStream method…

zhuber
- 5,364
- 3
- 30
- 63
0
votes
3 answers
2 animations on same object, only last shows. How to show first one w/o nesting completion block?
I'm doing two animations on the same UIImageView, using blocks. Animations are not quite back to back, but almost; there is some logic inbetween.
animate UIImageView from one location on the view to another.
execute logic that determines whether…

andrewmobile
- 188
- 1
- 8
-1
votes
1 answer
Calling objective-C Property block in swift file, the completion block property getting nil
property block getting nil I have objective-c viewcontroller class which has a property block in
// UAEPassWebViewController.h
@property (nonatomic, copy) void (^onUAEPassSuccessBlock)(NSString *response);
@property (nonatomic, copy) void…