How can I Change Width of Each component in UIPickerView

How can I Change Width of Each component in UIPIckerView?

Answers


Implement pickerView:widthForComponent: method in picker's delegate and return appropriate width for each component from it. e.g.

- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component{
      switch (component){
           case 0: 
                return 100.0f;
           case 1: 
                return 60.0f;
     }
      return 0;
}

Need Your Help

how to get time displayed in Android emulator?

android time emulator

There is a time displayed in the upper right corner of the emulator. How can I access this time displayed in the Android emulator?

Display A TTStyledTextLabel in a UITableView

iphone objective-c sdk ttstyledtextlabel

How can I set a TTStyledTextLabel inside of a UITableView.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.