uipickerview

Convert NSString to double for calculations and then back again to print in NSString

I accept NSString as NSString *value = [valuelist objectAtIndex:valuerow]; NSString *value2 = [valuelist2 objectAtIndex:valuerow2]; from UIPickerView. I want to double *cal = value + (value2 * 8) + 3; NSString *message =[[NSString alloc] initWithFormat:@"%@",cal]; I should be able to get the string in message after I do the calc...

uipickerviews inside table cell not selectable

Hi, I have a table cell for which I set its contentView to a custom view that contains one label and a number of uipickerviews. My problem is that only the first picker view is selectable, while all the rest are not. When I click on any of the not-selectable picker views, the table cell gets selected instead. Below is my code: // Ins...

UIPickerView Animation

Suppose to come up a jackpot slot machine application. how do I make it spin longer and make the slot stop spinning one column after another? which means is like column 1 stops spinning, followed by the next column and so on... -(IBAction)spin { BOOL win = NO; int numInRow = 1; int lastVal = -1; //spinning for(int i = 0; i<3 ;i++) { int...

How to create an NSDictionary with two values per key from plist

I have a dependent UIPicker that loads the values into its two components from a plist. It's an NSDictionary with NSArrays of strings. The user selects a pair of components and the picker sends those two strings back to the delegate. What I really need is a constant that goes along with each individual choice. For example, first comp...

reload Pickerview component Monotouch

Hey everyone; I've currently got a button that when selected it sets the selection of a two component pickerview to index zero and then I want it to automatically reload the second column. The code I have is this: MakeModel.Select(0,0,true); // Select first on left MakeModel.ReloadComponent(1); // reload right side to available Unf...

Why is my multi-component UIPickerView crashing?

I'm trying to create a simple pickerview with two components, drawing its label data from a small mutablearray and output data from a simple matrix. The purpose of this wheel is to select a value from 0 to 1000, and then spit out the number in a label and the value to the rest of the application's functions. Some specific info about wha...

Why doesn't this for loop execute?

I have a picker view controller to select a chemical source and possibly a concentration. If the source doesn't have concentrations, it just presents a single picker. It gets populated by an NSDictionary with source type names as keys and a custom model object I made called Chemical that has four properties, two NSString, one float and...

Property changes but I can't figure out who's doing it.

I have a UIViewController (called AdjustViewController) that presents another UIViewController (called SourcePickerViewController) with a UIPickerView modally. I generate instances of the AdjustViewController and they in turn make a SourcePickerViewController. I make an NSDictionary and assign it and an integer to the AdjustViewControl...

Refresh/ reload the uipicker

Hii, I add the uipicker on a view. and that view i am showing on the different textbox begin editing event. and i want to fill the uipicker from the different datasources on the different textbox editing event. so i want to refresh or reload the data on uipicker view. so plz suggest. ...

How to access delegate returned parameters outside of the delegate method?

I've got a UIViewController with a UIPicker on it and I've got the - (void)sourcePickerViewController:(SourcePickerViewController *)controller etc... which returns several bits of data (the etc...) to it's delegate. Inside the delegate method, I see the values I want and can output them via NSLog but I can't figure out how to use them e...

NSString Converting into a doubleValue after extracting NSString from UIPicker

I have : NSInteger dollarrow = [ValuesPicker selectedRowInComponent:kDollar]; NSString *dollar = [dollarlist objectAtIndex:dollarrow]; double converteddollar=0; I want to do a for loop on this and get the value in double , I am trying this : for(dollar=1;dollar<=99;dollar++) { converteddollar = converteddolla...

UIDatePicker select Month and Year

I need a UIDatePicker for selecting Month and Year only. I checked the class reference documents. Looks like UIDatePicker is a UIView. I imagined UIPickerView may be a sub view and I can hide the component if I can grab it. But no. That was not possible. Do I have to create my own custom picker then? Any ideas? ...

How to populate UIPickerView with .plist file ?

I want to populate one.plist files from a number of .plist files as per the user selection . How to populate UIPickerView with a .plist file ? ...

Can we use the UIPicker directly in an iPad Application?

Can we use the UIPicker directly in an Pad Application? I tried to show a Pickerview. But I felt it very small in size compared to the iPad Dimension. I was also not able to increase its height and width. ...

How do you save CoreData with UIPickerView and then load CoreData with UITableView?

I have a multiview application using a tab bar to switch views. One is a pickerview while the other two are a table view and a view with 4 text fields (and one other table view that just contains instructions on how to use the app). I want to use core data to save selected rows in the picker view and also save strings that are entered in...

How to measure the amount of megabyte data?

I want to make an app that measure the amount of data I use while surfing on my Iphone over 3g network. Things I would like to incorporate; - UIPickerView (to set the amount of data I want to to use before an alert shows) - AlertView ( the warning that my data is about to exceed) - Run in the background. So basically, i want to be able...

Custom UIPickerView Background

So I want to change the UIPickerView background to add a black rectangle next to the white part of the scroller, a la the Convert app. However I'm not sure how to go about doing that. I know there's no direct way to do it, but I've also looked at trying to write my own UIPickerView from scratch using UIScrollView. This didn't seem ver...

How to change font color of individual characters in a UIPickerView row?

I have an app which shows text in a UIPickerView based on a search. I want to highlight specific letters in the string that are there as a result of a wildcard character. For example, if I searched for "CA?", one of the rows will show "CAT" and I want only the letter "T" to be in the color blue. Any ideas? The user gets immediate fee...

UIPickerView and NSUserDefaults issue

Hi, I have an UIPickerView with 2 components. I would like to save the user's selection and to apply it next time the pickerView is shown again. Here's my code: - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { NSUserDefaults *pickerViewSelectionDefaults = [NSUserDef...

Bottom pop-up UIPicker?

Is the UIPicker that pops up from the bottom of the screen when an action is called just a basic UIPickerView that is coordinated in a certain way? (Like a UIActionSheet?) How would I implement that? ...