uipickerview

UIPickerView - changing component width

In my iPhone app I want to have a UIPickerView with 2 components. Initially the left column will be wide and the right column narrow to enable the text on the left to be read easily to allow selection from it. Once this column has been selected the user will click on the right column to select an item from it : when this happens I want ...

How to remove the highlight selection in Pickerview?

Hi, everyone.. I've been trying every day on how to remove the blue highlight in Pickerview. I found nothing useful at Google, but here I found this link: http://stackoverflow.com/questions/958443/overriding-highlighted-selection-in-uipickerview/1785804#1785804 But, when I try to implement that in my app, nothing happens, the blue hig...

iphone clipping a MyPicker : pickerview : uiview

Just checking to see if someone has done this before. I used to have ways to modify the size of a UIPickerView. But it seems that ever since iOS4.0 it seems to be locked. If I do the usual trickery and compile targeting 3.0 it works as usual. But this is for a free app with iAd so it's going to be an iOS4 only affair. So I'm thinking o...

iphone UIPickerView select row

Hi all, I have my view that contains the UIPickerView... I tried to make this code: [self.picker selectRow:rowSelected inComponent:0 animated:true]; to select the row with index rowSelected, but this doesn't work... I need to put this in viewdidload?? ...

iphone UIPickerView reduce font of the items

Hi all.. it's possible reduce or change the font of the items of the uipickerview? thanks in advance! ...

How can I save UIPickerView rows selection

Hi, I have an UIPickerView with 2 components. I would like to save the user's selection for the components. How can I do that? I have tried with NSUserDefaults but it didn't help. Thanks! ...

Waiting until an uipickerview finish rolling

Hi, I try to use a picker view for simulating some device in a gaming room, by rolling during some time and dusplaying an alertview. Unfortunately, the code doesn't work because when the animated parameter is set to YES, the next instruction forbids the picker to roll softly until the wanted value. Here's a bit of the code: [picker ...

How to make a UIDatePicker appear at bottom of screen?

Hello, I currently use MonoTouch with MonoTouch.Dialog. When tapping on a date field it pushes the navigationcontroller so you go right a screen to see your UIDatePicker where you choose the date then go "back" to the main screen again. I'd really like to have this UI like other apps I've used that when you select a date field the UID...

Loading a UIPicker to a predetermined spot

If I have a basic array such as: NSArray *array = [[NSArray alloc]initWithObjects:@"Object1",@"Object2",@"Object3",nil]; self.pickerData = array; [array release]; The picker will be on "Object1" when the view is loaded. How can I have the picker start off settled on "Object2"? ...

UIPicker detect tap / touch on currently selected row

Okay guys, I have a UIPickerView and I want to do something when the user TAPS the currently selected row. I have it working right now where if they tap a row which is NOT selected, it rotates to the selected center view. However, when they tap this already selected row, the method didSelectRow is not called. I need something that execu...

catching UIPicker selectRow notification of finished animation.

Hi everyone. I am trying to catch when a specific UIPicker animation is finished. I have looked long for an answer to this but it seems that the common answer, which is to ensure the selectRow call is within the beginAnimations and commitAnimations calls, does not work. The problem is that the animationFinished is triggered almost imme...

Can you mix custom-view and non-custom view components in a single UIPickerView?

I have a multi-component UIPickerView in my application. Two components are plain and completely served by the pickerView:titleForRow:forComponent: method. My third component however requires a custom view via the pickerView:viewForRow:forComponent:reusingView: method. I don't see any way in the documentation to have a "partially...

How does a textfield cause a tableview to automatically scroll up when it slides up: how will this affect current insets and animations?

For most of my table view cells, I select a cell and a UIPickerView, added to the view of a UINavigationController, slide up from some offscreen position. I hit the done button in the navigation bar and the whole thing goes away nicely. I also automatically scroll the table view so the selected cell ends up right above the picker view u...

pickerview for iphone that looks like country select feature

I want to create a picker that looks and works like the country select field of itune store account. Here is what I am talking about. http://i38.tinypic.com/5p0w91.jpg This picker doesn't have a row highlighted. It has "correct" sign marked in front of selected row. user can scroll this picker and then select the row so "correct" sign ...

Problem with UIPickerView selection and NSUserDefaults

Hi, I have an UIPickerView with 2 components. I save the user picker selection with NSUserDefaults. Both components have the save rows text. For some reason, it saves only the last selected row and apply it on the other component, for example: If I select row 0 in component 0 and then select row 1 in component 1, and try to access them...

UIPickerView tap to scroll & custom row UIViews

You can scroll an UIPickerView both by swiping and by tapping items under or above the selection belt. You can populate an UIPickerView by either specifying NSString as titles or reusable UIViews for each row. What I've noticed is that when I switched from providing strings to providing view, tap to scroll no longer worked. Is this exp...

Why isn't this NSMutableArray getting populated?

I have an NSMutableArray I am trying to populate using a for-loop and making NSStrings for it. These are to be the data source for my UIPickerView. You'll see some commented out lines where I manually made NSArrays and they showed up fine, but my for-loop NSMutableArray doesn't seem to accept the strings I'm making. The NSLogs show th...

Customizing UIPickerView component background

Hi all! What are some of the ways you can customize the UIPickerView's component background image (the dials)? ...

Iphone Sdk: UIPickerView, possible to assign different font sizes to different components?

Hello everyone, i was just wondering if there was a way to change the fontSize of a row in a uipickerview for a specific component and not for all of them. Also the different components still have to be able to display different things and not the same. Does anyone have a solution for this problem? Thanks in advance! ...

UIPickerView, change font size not working?

hi, can anybody figure out why this is not working?? With the following code implemented text only appears in the first component but not in the second..... Thanks very much! - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UILabel *lbl = (UILa...