Skip to content
This repository

Custom UIPickerView controller

branch: master
Octocat-spinner-32 PickerView.xcodeproj init December 14, 2011
Octocat-spinner-32 PickerView set content offset to zero after reloading data January 21, 2012
Octocat-spinner-32 .gitignore init December 14, 2011
Octocat-spinner-32 LICENSE License added August 02, 2013
Octocat-spinner-32 README.md readme edit again:) December 18, 2011
README.md

Description

Custom UIPickerView controller reconstruction allows you to customize the graphics (background, shadow, selector) just replace those files with your own:

  • pickerBackground.png
  • pickerGlass.png
  • pickerShadows.png

Usage

  1. Create AFPickerView instance and customize it
pickerView = [[AFPickerView alloc] initWithFrame:CGRectMake(30.0, 250.0, 126.0, 197.0)];
pickerView.rowFont = [UIFont boldSystemFontOfSize:19.0];
pickerView.rowIndent = 10.0;
  1. Set dataSource, delegate and call - (void)reloadData
pickerView.dataSource = self;
pickerView.delegate = self;
[pickerView reloadData];
  1. Implement AFPickerViewDataSource and AFPickerViewDelegate

See demo in box

Something went wrong with that request. Please try again.