Skip to content

Instantly share code, notes, and snippets.

@GantMan
Created May 18, 2012 20:19
Show Gist options
  • Save GantMan/2727399 to your computer and use it in GitHub Desktop.
Save GantMan/2727399 to your computer and use it in GitHub Desktop.
[string drawAtPoint:point withFont:font];
string.drawAtPoint(point, withFont:font)
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
...
}
def numberOfComponentsInPickerView pickerView
...
end
- (NSInteger) pickerView:(UIPickerView *)pickerView- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
...
}
def pickerView(pickerView, titleForRow:row, forComponent:component)
...
end
NSString *wholeText = [textField.text stringByReplacingCharactersInRange:range withString:string];
wholeText = textField.text.stringByReplacingCharactersInRange(range, withString:string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment