objective c - IOS function handler threadsafe -


The code below is called the scrollview scroll each time and if the user scrolls it several times, the code crashes done. How can I ensure that only one code executes a time or thread?

  [self.cv addInfiniteScrollingWithActionHandler: ^ {[weakSelf loadNextPage]; }];    

Here is an example

  - (zero) _start presentation {FooClass * foo = [[Foo Class Alok] init]; Dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); For (int i = 0; i   



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -