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
#import <UIKit/UIKit.h> | |
@interface MyOwnTableViewCell : UITableViewCell | |
@end |
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
UISwitch * uis = [[[UISwitch alloc] init] autorelease]; | |
[uis addTarget:self action:@selector(toogleSwitch:) forControlEvents:UIControlEventValueChanged]; | |
NSString * key = [[sets objectAtIndex:[indexPath section]] objectForKey:SOME_KEY]; | |
uis.on = [[[NSUserDefaults standardUserDefaults] valueForKey:key] boolValue]; | |
uis.tag = [indexPath section]; | |
cell.accessoryView = uis; |
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
# Source: | |
# https://stackoverflow.com/questions/3971822/how-do-i-validate-my-yaml-file-from-command-line | |
$ ruby -e "require 'yaml';puts YAML.load_file('some-file.yaml')" | |
$ perl -MYAML -e 'use YAML;YAML::LoadFile("./file.yaml")' | |
$ python -c "from yaml import load, Loader; load(open('.travis.yml'), Loader=Loader)" | |
$ travis lint .travis.yml |
OlderNewer