What is difference between performblock: and performblockandwait:?



What is difference between performblock: and performblockandwait:?..

Answer / Manoj Kumar Singh

performBlock: is a method that schedules a block of code to be executed on the current thread's run loop. It does not wait for the execution to complete. On the other hand, performBlockAndWait: executes the block synchronously and waits for its completion before continuing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

How is the app delegate is declared by Xcode project templates?

1 Answers  


What are different instruments xcode supports for app profiling?

1 Answers  


What is messaging? How does the runtime handle message passing? What is message forwarding?

1 Answers  


What is notification in iOS?

1 Answers   TryTechnicals Pvt Ltd,


What is nspersistentstore? Is it thread safe?

1 Answers  


how push notification works?

1 Answers  


What is managed object context and what are its functions?

1 Answers  


What is application lifecycle in ios?

1 Answers  


What performance issues can you face when using coredata?

1 Answers  


What is nsmanagedobjectmodel?

1 Answers  


What is framework in ios?

1 Answers  


Explain difference between mrc and arc?

1 Answers  


Categories