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) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -