Created
July 9, 2013 08:13
-
-
Save fmtonakai/5955595 to your computer and use it in GitHub Desktop.
実際に使ってみる
This file contains 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
#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