Skip to content

Instantly share code, notes, and snippets.

@fmtonakai
Created July 9, 2013 08:13
Show Gist options
  • Save fmtonakai/5955595 to your computer and use it in GitHub Desktop.
Save fmtonakai/5955595 to your computer and use it in GitHub Desktop.
実際に使ってみる
#import "ViewController.h"
#import "SwitchCell.h"
@interface ViewController () <UITableViewDataSource, UITableViewDelegateSwitchCell>
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - UITableViewDataSource
// 中略
#pragma mark - UITableViewDelegateSwitchCell
-(void)tableView:(UITableView *)tableView didChangeValue:(BOOL)value forRowWithIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"value changed: %d at %@", value, indexPath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment