Tagged Questions
4
votes
5answers
14k views
how to show pickerview in uitextfield not the keyboard?
I want to show a UIPickerView on becoming FirstResponder of a UITextfield not the keyboard and fill the value in text field form the picker view.
any one knows this?
4
votes
3answers
635 views
Enter fractions in a uitextfield from 3 UIPickers?
So what I'm intending to do is instead of typing in decimals, I want to be able to enter whole numbers and fractions in a textfield. Or select them from a UIPicker.
Example: Feet, Inches, ...
3
votes
1answer
718 views
Xcode: How To Make PickerView Start At A Certain Row When It Is First Displayed
Is there a way to make the PickerView in Xcode start at a default row? Right now, my PickerView starts at the first element in my array.
So for example, if I have 1 component with 30 rows, how can I ...
3
votes
5answers
4k views
Allowing user to select a UIPickerView row by tapping
I'm trying to use a UIPicker View with a behavior somehow different of what's usually seen in iPhone code examples.
What I want to do is to allow users to scroll through the picker contents, but not ...
3
votes
1answer
371 views
How can i get UIPickerview to update UILabel automatically
I have a converter app, and i want it to update the label whenever im typing the numbers (that should be converted) into the text field. I want it to update automatically so i dont need to pick the ...
3
votes
2answers
589 views
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 ...
3
votes
1answer
221 views
How do I create a UIPickerView-like picker from scratch?
I've looked into customizing the UIPickerView, but the options to customize it the way I want to do not exist.
I want to change the "selection highlight" to be a static image behind the text labels ...
3
votes
2answers
898 views
How to populate data from a webservice into UIPickerView? [iOS App Development]
Anyone knows how to populate, example a list of categories, from web service into the UIPickerView?
Also, is it possible to put in a hidden value?
Example,
"Public" with hidden id of "1"
"Member" ...
2
votes
3answers
163 views
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 ...
2
votes
6answers
188 views
how to get digits of a integer from NSString?
I am having a string like NSString *str = @"123".I want to fill the digits of this string into UIPickerView.But how to get the digits from this string?I added the following code
- ...
2
votes
2answers
5k views
ios programming - Data argument not used by format string
I get a Data argument not used by format string error when I run the following code:
- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
...
2
votes
2answers
110 views
Implement UIPickerView horizontally?
The default scroll setting for a UIPickerView is set to vertical. Is it possible to implement a UIPickerView horizontally?
If so, could you please show me a sample or direct me where to helpful ...
2
votes
1answer
3k views
UITextField inputview to pop up UIPickerView displaying question mark in pickerview
Here is my .h file
When I run this code and select a text field, a pickerview pop's with question marks in it
but when I select question mark I get correct values in text field
#import ...
2
votes
2answers
693 views
Can I disable selection in specific UIPickerView item?
I can find a post that teach to use delegate method to check if the row valid and then scroll to the right one if not.
But that's not I want. Can I disable the specific row after the pickerView ...
2
votes
2answers
6k views
UIDatePicker in UITextField in UITableView realtime update
This question has been bugging me a LOT lately. Any help would be appreciated.
These were my objectives:
Setup a UIDatePickerView for a UItextField in a UITableViewCell.
I have done all this so ...
2
votes
2answers
443 views
UIPickerView causing crash
Whenever I try to select the UIPickerView in my App it crashes.
I have implemented all the delegate methods but receive this error:
2013-01-15 13:57:56.176 tracker[16142:c07] *** Assertion failure ...
2
votes
1answer
558 views
How to use UIPickerView to populate different textfields in one view?
I have a view with 8 textfields. I want each textfield to be associated with a pickerview which will have different items. This pickerview should populate each text field.
When I click on the ...
2
votes
1answer
1k views
How can I put an image in this UIPickerView?
I don't have any idea how can I create a custom UIPickerView with an image on the side of the text.
I've been searching for a method and I just found this:
- (UIView *)pickerView:(UIPickerView ...
2
votes
2answers
6k views
How to use UIPickerview in xcode 4.2 storyboard?
I am trying to use a UIPickerView for my project but I can't figure out how to use them in the storyboard format. Does anyone know how to do that?
2
votes
1answer
4k views
How to dismiss uiactionsheet with close button and avoid crash?
I have read on another post (http://stackoverflow.com/questions/5726408/how-to-dismiss-action-sheet) that I can use
[actionSheet dismissWithClickedButtonIndex:0 animated:YES];
to dismiss the ...
2
votes
1answer
252 views
Parsing JSON value on UIPickerview xcode
I have a pickerview with which I would want to display values using JSON parsing. I am aware some questions on the site already tackle parsing and pickerview but mine is slightly different in regards ...
2
votes
1answer
343 views
UIPickerView updating from UISegmentedControl
I'm attempting to update a single UIPickerView with a different NSArray of data based on which Index is selected from a UISegmentedControl. Currently when I change the control the ...
2
votes
0answers
367 views
how to change the default color of selection bar in PickerView? [duplicate]
Possible Duplicate:
How to change color of selected row in UIPickerView
I have taken a pickerview in my application but client doesn't like the default color of the selection bar of the ...
1
vote
4answers
71 views
Comparing uipickerdate to current date
Here is the code that I have for my two datepickers which I need to compare them to the current date with an if condition or a switch.
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
...
1
vote
3answers
504 views
Alternative for UIPicker
Is there any other method for a SLOT-MACHINE app? This because a UIPICKER method doesn't have a slow animation effect.
1
vote
1answer
936 views
Error on UIPicker [__NSCFConstantString _isResizable]:?
UI Pickers got me stuck again, Im still learning with the UI picker so not sure if ive done something fundamentally wrong here.
Trying to display an image from row UIPicker.
Error:
*** Terminating ...
1
vote
1answer
1k views
UIPickerview For Drop Down Menu
I have Xcode 4.2 and I am trying to create a drop down menu. I would like the drop down menu to drop down with words or numbers. Then when I select something from the list I would like it to appear in ...
1
vote
2answers
3k views
How to set a default Value of a UIPickerView
I have a problem with my UIPickerView.
I have 3 values in it EU AP and NA.
When i start the app EU seems to be selected but when i make a NSLog(@"%@", [regions objectAtIndex:row]); i only get back ...
1
vote
4answers
2k views
How to use one UIPickerView for multiple textfields in one view?
I have 8 textfields in one view. I want to populate each using a pickerview.
Can I have 1 pickerview which will display different list of items from different arrays for different textfields?
Can ...
1
vote
1answer
842 views
Reload data into UIPickerView
i need to refresh the data in the UIPickerView.
i'm using
[pickerView reloadAllComponents];
but my problem is that i need to reset the selected row as well, i want the selected row to go back to ...
1
vote
2answers
978 views
Use initWithObjects on data from Array of Objects
Lets say I have a number of objects:
@interface City : NSObject {
NSString *name;
NSString *country;
int yearFirstTimeVisited;
}
Which are stored in an Array of objects:
city = ...
1
vote
3answers
535 views
Multiple PickerView on 1 ViewController
I created 2 PickerView Programatically. How do I make sure to hide pickerView1 when pickerView2 is about to show. Vice versa.
Thank you.
This is how I created them.
- ...
1
vote
3answers
123 views
JSON Arrays and Sorting
I have this json array which I have outlined below. I want to know how I could get all the strings under the "name" key only and place in a certain array to be sorted alphabetically by name and later ...
1
vote
2answers
2k views
Adding UIPickerView to a UITableViewCell
i want to add a UIPickerView to a UITableViewCell. Right now i am just getting a black window.Can some one also explain me the concept of subclassing UI objects to a cell ie:when do we make our cell ...
1
vote
4answers
4k views
How can I animate displaying UIPickerView after pressing button
I want to animate my UIPickerView after pressing the button. I already have coded my UIPickerView to be hidden on viewDidLoad and not hidden after pressing a button, but it doesn't animate like how a ...
1
vote
2answers
383 views
UIPickerView vs. a new UITableViewController
What do you think is a better method for letting a user choose an item from a list with an unknown but rather small (5-20) number of items?
Should I use a UIPickerView on the current screen, or ...
1
vote
2answers
389 views
How to get the mins and secs in UIPickerView as in figure?
How can we achieve such type of selected values to be changed with mins and secs in UIPickerView???
1
vote
2answers
654 views
UIPickerView realtime update on TextField
As soon as I scroll the PickerView (or) UIDatePicker, I need the value to get displayed on a TextField :
While Scrolling. Even when the picker is moving the text field should update itself. Is it ...
1
vote
1answer
4k views
Adding a UIPickerView to a UITableView cell
I am trying to add a pickerView to a row in my table view, but after doing this, all I see is a black rectangle inside the cell.
- (UITableViewCell *)tableView:(UITableView *)tableView ...
1
vote
2answers
879 views
pickerview app crashing due to NSRangeException NSCFArray objectAtIndex: index (5)…beyond bounds (5)
Once again working through beginning iphone development and I am putting together a bunch of UIPicker type apps, the last one of which is a slot machine type of game, super simple. Anyway I am not ...
1
vote
1answer
28 views
How Do we recall PickView's didSelectRow after choosing a segment?
I have used a segmented control for the user to choose between two type of results after they select a row in the pickerview. However, when I choose a row in the pickerview then it shows the result of ...
1
vote
7answers
95 views
UIPickerView not displaying data
I've followed a couple youtube tutorials as well as advice on here but I can't seem to get my UIPickerView to display its data. I'm populating the picker using three arrays and I thought I've ...
1
vote
2answers
235 views
Choose objects inside UITableView chosen by UIPickerView
This is a very broad question, not a specific question about a single problem. If you don't want to help with one of these, here is your warning!
I have a View with a pickerWheel. On this picker, I ...
1
vote
3answers
772 views
How can I populate TextField with a UIpickerView that has more than one column?
I have a UIPickerView display with the inputView of a textField. I have split the pickerView into two columns. One is whole numbers 50-500. The other is 0.25,0.50,0.75. I want them to be able to ...
1
vote
3answers
401 views
UIPicker with UITextField
I made a research and all posts here are very blury regarding this issue.
I would like to use a UIPicker when pressing on a UITextField.
I would realy appriciate a step by step guide.
I tryd all ...
1
vote
1answer
468 views
how to implement an Drop Down List for iphone
I searched about UIPickerView and NSComboBox , I really don't understand the difference between these two !!! can anyone tell me what is the best way to show an Drop down list in xcode .
I saw the ...
1
vote
1answer
1k views
Trouble with UIPickerView
I'm totally stuck with the UIPickerView. I keep getting the error :
GDB: received signal: "SIGABRT".
2011-07-14 13:35:19.132 MeldStad[677:207] * Terminating app due to uncaught exception ...
1
vote
5answers
702 views
how set condition for text field. text?
if([txtField1.text intValue] == nil && [txtField2.text intValue] == nil && [txtField3.text intValue] == nil && [txtField4.text intValue] == nil && ...
1
vote
1answer
167 views
Populating Component 1 of Picker view with respect to selection made in Component 0 of same Picker
I am very new o XCode. I was using Picker VIew and got stuck at one place.
I have a Picker View with two Components. And I have three arrays. Array, Array1, Array2.
Now what I want to accomplish is ...
1
vote
1answer
81 views
Using one pickerView to show different array data
I am new to XCode. I was trying to use one pickerView and in that i wanted to show three different array data at different time. Like if i click on the button the picker view shows up with an array of ...