Skip to content

cantinasoftware/iSugar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iSugar

UIKit additions that aim at replacing delegates with blocks.

Example:

UIActionSheet *sheet = [UIActionSheet actionSheetWithTitle:@"Sample Title" 
                                                   onClick:^(UIActionSheet *actionSheet, NSInteger index) {
                                                       self.textView.text = [actionSheet buttonTitleAtIndex:index];
                                                   } 
                                         cancelButtonTitle:@"Cancel"
                                    destructiveButtonTitle:@"Destruct" 
                                         otherButtonTitles:@"Sample Choice 1", @"Sample Choice 2", nil];

About

UIKit additions that aim at replacing delegates with blocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors