Showing posts with label Picker. Show all posts
Showing posts with label Picker. Show all posts

Sunday, February 16, 2014

MW Date Picker

MWDatePicker - Custom UIDatePicker

An UIDatePicker replacement with custom Background and Selector Styles. (As seen in nextr)

Still in work :)

Preview

With Shadows and ColorsWith Shadows and BlackWith Shadows and Black and SelectorWithout Shadows and White

Features

  • customize the Look and Feel of your UIDatePicker in order to suit your App Design
  • change Background of each Component either with UIColor or an UIView
  • change and style the Date Selector Overlay (again with UIColor or an UIView)

Installation

  1. Add MWDatePicker.h and MWDatePicker.m to your project
  2. Add QuartzCore.framework to your project

Requirements

  • iOS 6.0 and greater
  • ARC

Delegate Methods

  1. Add 'MWDatePicker.h' to your ViewController
  2. Add 'MWPickerDelegate' to your Class
  3. Implement MWDatePicker Delegate Methods
  • (void)datePicker:(MWDatePicker *)picker didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
  • (void)datePicker:(MWDatePicker *)picker didClickRow:(NSInteger)row inComponent:(NSInteger)component;
  • (UIView *)backgroundViewForDatePicker:(MWDatePicker *)picker;
  • (UIColor *)backgroundColorForDatePicker:(MWDatePicker *)picker;
  • (UIView *)datePicker:(MWDatePicker *)picker backgroundViewForComponent:(NSInteger)component;
  • (UIColor *)datePicker:(MWDatePicker *)picker backgroundColorForComponent:(NSInteger)component;
  • (UIView *)overlayViewForDatePickerSelector:(MWDatePicker *)picker;
  • (UIColor *)overlayColorForDatePickerSelector:(MWDatePicker *)picker;
  • (UIView *)viewForDatePickerSelector:(MWDatePicker *)picker;
  • (UIColor *)viewColorForDatePickerSelector:(MWDatePicker *)picker;
Download: https://github.com/mwermuth/MWDatePicker/archive/master.zip