Uipickerview is a native selector control in iOS that is easy to use, simple in usage, and beautifully effective.
@property (nonatomic,assign) id<uipickerviewdatasource> DataSource;
@property (nonatomic,assign) id<uipickerviewdelegate> delegate;
Set up data sources and proxies
@property (nonatomic) BOOL showsselectionindicator;
Whether the selection box is displayed, this property has no effect after iOS7
@property (nonatomic,readonly) Nsinteger numberofcomponents;
Get the number of partitions
-(Nsinteger) Numberofrowsincomponent: (Nsinteger) component;
Gets the number of rows for a partition
-(Cgsize) Rowsizeforcomponent: (Nsinteger) component;
Get the dimensions of a partition row
-(UIView *) Viewforrow: (Nsinteger) Row forcomponent: (Nsinteger) component;
Get a view of a row in a partition
-(void) reloadallcomponents;
Reload All partitions
-(void) Reloadcomponent: (Nsinteger) component;
Overloading a partition
-(void) SelectRow: (Nsinteger) Row incomponent: (Nsinteger) component animated: (BOOL) animated;
Set a row to select a partition
-(Nsinteger) Selectedrowincomponent: (Nsinteger) component;
Returns a selected row of a partition
Methods in the data source proxy:
-(Nsinteger) Numberofcomponentsinpickerview: (Uipickerview *) Pickerview;
Set Number of partitions
-(Nsinteger) Pickerview: (Uipickerview *) Pickerview numberofrowsincomponent: (nsinteger) component;
Set the number of rows by partition
Methods in the proxy:
-(CGFloat) Pickerview: (Uipickerview *) Pickerview widthforcomponent: (nsinteger) component;
Set the partition width
-(CGFloat) Pickerview: (Uipickerview *) Pickerview rowheightforcomponent: (nsinteger) component;
Set Partition Row Height
-(NSString *) Pickerview: (Uipickerview *) Pickerview Titleforrow: (nsinteger) Row forcomponent: (Nsinteger) component;
Set the caption displayed for a row
-(Nsattributedstring *) Pickerview: (Uipickerview *) Pickerview Attributedtitleforrow: (nsinteger) row forComponent: ( Nsinteger) component;
To set the caption displayed by a row through a property string
-(UIView *) Pickerview: (Uipickerview *) Pickerview Viewforrow: (nsinteger) Row forcomponent: (Nsinteger) component Reusingview: (UIView *) view;
Set the view view displayed for a row
-(void) Pickerview: (Uipickerview *) Pickerview Didselectrow: (nsinteger) Row incomponent: (Nsinteger) component;
Callback that is executed when a row is selected
Summary of common properties and methods for Uipickerview in iOS