Skip to content

Instantly share code, notes, and snippets.

@kfarst
Created March 21, 2015 02:02
Show Gist options
  • Save kfarst/3086828ce6a48093dc9f to your computer and use it in GitHub Desktop.
Save kfarst/3086828ce6a48093dc9f to your computer and use it in GitHub Desktop.
Picker View Scale
pickerWidthScaleRatio = (self.view.frame.width / 2.0) / pickerNaturalWidth
pickerHeightScaleRatio = self.view.frame.height / pickerNaturalHeight
timePicker.transform = CGAffineTransformMakeScale(pickerWidthScaleRatio, pickerHeightScaleRatio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment