Last active
          August 12, 2018 18:21 
        
      - 
      
- 
        Save nishabe/405e7a52113e23c56247ab76f0a7fcbb to your computer and use it in GitHub Desktop. 
    OBJC: Force code execution only once
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| // Your code here | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment