GooHub. Open source code from Goo Software.

GSProgressView Download .zip View code

A cute, circular progress view for iOS

GSProgressView *pv = [[GSProgressView alloc] initWithFrame:CGRectMake(0, 0, 32, 32)];
pv.color = [UIColor redColor];
pv.progress = 0.3;
[self.view addSubview:pv];

GSDropboxActivity Download .zip View code

A UIActivity class for iOS 6 that makes it a breeze to upload to Dropbox

NSArray *itemsToShare = @[ ... ];
NSArray *applicationActivities = @[[[GSDropboxActivity alloc] init]];
UIActivityViewController *vc = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare
                                                                 applicationActivities:applicationActivities];

[self presentViewController:vc animated:YES completion:NULL];

GSKeychain Download .zip View code

Makes accessing the keychain as easy as accessing NSUserDefaults

// Store a secret
[[GSKeychain systemKeychain] setSecret:@"t0ps3kr1t" forKey:@"myAccessToken"];

// Fetch a secret
NSString *secret = [[GSKeychain systemKeychain] secretForKey:@"myAccessToken"];

// Delete a secret
[[GSKeychain systemKeychain] removeSecretForKey:@"myAccessToken"];

GSRadioButtonSetController Download .zip View code

Implements the logic for a set of radio buttons

- (void)viewDidLoad {
    [super viewDidLoad];
  
    // Instantiate the radio button set controller
    self.radioButtonSetController = [[GSRadioButtonSetController alloc] init];
    self.radioButtonSetController.delegate = self;
  
    // Give it some buttons you previously configured
    self.radioButtonSetController.buttons = @[
        self.button1, 
        self.button2, 
        self.button3
    ];
}

#pragma mark - Radio button set delegate method
- (void)radioButtonSetController:(GSRadioButtonSetController *)controller 
          didSelectButtonAtIndex:(NSUInteger)selectedIndex
{
    // Handle button selection here
    NSLog(@"Someone just selected button %u!", selectedIndex);
}