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
// adding xcode project to github | |
// create git repo on github | |
// go to directory with .xcodeproj file | |
git init | |
git add . | |
git commit -m 'initial commit' | |
git remote add origin git@github.com:tonyalbor/REPOSITORY.git | |
git pull origin master | |
git push origin master |
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
- (BOOL)textFieldShouldReturn:(UITextField *)textField { | |
NSInteger nextTag = textField.tag + 1; | |
UIResponder *nextResponder = [[textField superview] viewWithTag:nextTag]; | |
if(nextResponder) [nextResponder becomeFirstResponder]; | |
else [textField resignFirstResponder]; | |
return NO; | |
} |
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
static DataSource *_sharedDataSource = nil; | |
+ (DataSource *)sharedDataSource { | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
_sharedDataSource = [[DataSource alloc] init]; | |
// further initialization | |
}); | |
return _sharedDataSource; |