Answer Posted / Pankaj Kumar Yadav
dispatch_once is a macro in Objective-C that ensures a block of code is executed exactly once during the lifetime of a program. It uses thread local storage and a static variable to check if the code has been executed before. If not, it executes the block and sets the variable to true, ensuring the same block will not run again.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category