Questions tagged [uipickerviewcontroller]

UIPickerViewController is a common misrepresentation of the combination of a UIPickerView, its delegate, and its data source.

UIPickerViewController does not exist in iOS, however it is commonly used to refer to a UIPickerView and its associated delegate and data source. Please use the and/or tags instead.

91 questions
1
vote
1 answer

having trouble to assign multiple picker views to a single view controller

(void)viewDidLoad { [super viewDidLoad]; picker1Data=@[@1,@2,@3,@4,@5]; picker2Data=@[@"a",@"b",@"c",@"d",@"e",@"f"]; self.picker1.dataSource=self; self.picker1.delegate=self; self.picker2.dataSource=self; …
Muhammad Waqas
  • 904
  • 2
  • 10
  • 21
1
vote
0 answers

UIPickerController Image Offset with an ImageView overlay subview

I am trying to overlay crosshairs in the camera, but after taking a picture, the image is offset from where it was taken. For example, I will line up the crosshairs with a lightbulb in my house, take the picture, and then the crosshairs will be…
scott
  • 1,194
  • 7
  • 18
1
vote
1 answer

UIPopoverController (swift)

trying to get UIPopoverController to show me a uipickerviewcontroller on iPad let popOver = UIPopoverController() popOver.delegate = self popOver.setContentViewController(imagePicker, animated: true) Error : *** Terminating app due to…
KennyVB
  • 745
  • 2
  • 9
  • 28
1
vote
1 answer

Does Objective-c require you to have different classes for every instance of UIPickerViews

I have three different search pages all running off of my Search View Controller. Each one has a different search method, but the screens are basically the same. selections from the picker will fill in the text fields and the lat and long is the…
Crask422
  • 115
  • 1
  • 9
0
votes
1 answer

iphone app how to do wheel animation

I am working on app where it needs wheel animation like iPhone sony pictures app , is it possible with UIPickerview controller , or does any one has any sol? Thank u in advance
ratnasomu
  • 174
  • 1
  • 1
  • 14
0
votes
1 answer

iOS : My sound file can't play in PickerViewController

I have one music player with multiple sound app using a pickerView controller but when i try to build the app, the sound doesn't come out. Anyone can help me to troubleshoot my code? Here is my code for troubleshooting. .H file #import…
Amink
  • 35
  • 11
0
votes
1 answer

Going to viewController from customcell

i am having a tableview in which custom cells are loaded.Custom cell has a button on click of which a pickerview will open which will have options to choose from. The problem is that modalViewController method is not working, it is giving the…
dead_soldier
  • 429
  • 1
  • 5
  • 18
0
votes
1 answer

Adding a picker view on onclick of a text box

How can I add a picker view on onclick of a text box. Here's the code I am using for the text box:
shasha
  • 615
  • 2
  • 14
  • 26
0
votes
2 answers

Objective-C : Auto Update Label text

I am new to Objective-C and i need your help! In the code that you will see below, my labels pick data from a picker view. I would like instead of using a "calculate" IBAction, to have my "chargeLabel.text" updated in real time as soon as the user…
Pantelis Proios
  • 1,359
  • 1
  • 20
  • 32
0
votes
2 answers

Necessary to retain controller for datasource and delegate of uiPickerview?

As I understood, I should not be retaining a controller which is a delegate or datasource. I have made a UIPickerView, created in a property accessor as such: -(UIPickerView *)projectPicker { if (_projectPicker != nil) { return…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
0
votes
1 answer

How to flip inverted selfie image in UIImagePickerController in preview view in swift 5

Initializing image picker imagePicker.sourceType = UIImagePickerController.SourceType.camera //If you dont want to edit the photo then you can set allowsEditing to false imagePicker.allowsEditing = false …
0
votes
1 answer

Iphone Grab picture from camera when takepicture method called

Hello all I wanted to know if it is possible to get the UIIMAGE reference from the iphone camera after I press the takepicture button. I don't want to have to press on the use button for the delegate method to be called before I can access the…
user281300
  • 1,427
  • 2
  • 19
  • 31
0
votes
1 answer

Row for pickerview titleForRow always start from 2

I'm using UIpickerview in my app. The problem is that my pickerview titleforrow function always return 3 rows although numberofRowsinComponent return more rows. - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent: …
sicKo
  • 1,241
  • 1
  • 12
  • 35
0
votes
2 answers

How to present JSON array in UIPickerView in alphabetical order?

I have a UIPickerView that gets data from JSON and presents it in two columns, one that shows two columns, producer and product using the following: if let url = URL(string: "https://www.example.com/example"), let data = try?…
John
  • 965
  • 8
  • 16
0
votes
1 answer

Trouble populating UIPickerView with JSON array using Alamofire | Swift

Essentially I have a textField that when pressed needs to open a UIPickerView with a selection that comes from JSON I have separately worked on triggering a UIPickerView when selecting a UItextField and creating arrays from JSON in Swift but am…
user11349745