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
50
votes
4 answers

Source type 1 not available

I have an app for iPhone and iPad, and when I try to load an UIPickerViewController in a UIPopoverController for iPad I get the Exception "Source type 1 not available". getting the problem even though using the device. @try { if…
42
votes
1 answer

Initialization of UIDocumentPickerViewController in iOS 14

I have a UIDocumentPickerViewController that picks only images. This works fine in iOS 13: let supportedTypes: [String] = ["public.image"] let documentPickerViewController = UIDocumentPickerViewController(documentTypes: supportedTypes, in:…
backslash-f
  • 7,923
  • 7
  • 52
  • 80
39
votes
5 answers

Type "myViewController" does not conform to protocol UIPIckerDataSource in Swift

I just create a new class in Swift, it's called myViewController and it's a UIViewController. Now I'm trying to make it a UIPickerViewDelegate and DataSource but i got a strange error import UIKit class myViewController: UIViewController,…
r4id4
  • 5,877
  • 8
  • 46
  • 76
11
votes
4 answers

UIPickerView with custom views broken in iOS7

I have an app with a UIPickerView. I am returning a custom view with the method - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view It looked fine in iOS 6. In…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
7
votes
4 answers

UIImagePickerController does not release memory it occupies

I saw this thing on using instruments for my app. When I profile my app, the initial memory occupied is 563 KB which is before UIImagePickerController pops up. There is one button on the first viewController which makes the UIImagePickerController…
Nitish
  • 13,845
  • 28
  • 135
  • 263
4
votes
1 answer

How do I make a UIPickerView in a UIActionSheet

Just want to know how I would make a UIPickerView in a UIActionSheet with a simple array. Ok well I actually found out how to put it into an action sheet but I like your way better because it applies more to my app, thanks, but I want to also know…
Jab
  • 26,853
  • 21
  • 75
  • 114
3
votes
2 answers

Alternatives for picker in iphone/iOS app?

I am showing a form the user fills in my iPhone app. One of the fields is a set of 2 or 3 dates from which the user has to pick one. Putting a picker, or bringing up a table view just for this takes up too much space, leaving no room for the other…
gigahari
  • 671
  • 1
  • 7
  • 19
3
votes
1 answer

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 'NSInvalidArgumentException', reason: '-[UIView…
Th3noon
  • 47
  • 1
  • 7
3
votes
1 answer

UIImagePickerController: Custom camera overlay sitting on top of default controls?

I'm creating a custom camera UI using UIImagePickerController cameraOverlayView property. However, I'd like to keep some of the existing UI -- specifically the flash and camera selection buttons at the top. My thought was that I'd keep…
memmons
  • 40,222
  • 21
  • 149
  • 183
3
votes
2 answers

iPhone Screenshots

I've been using UIGetScreenImage() to get a screenshot of a UIImagePickerController. Basically I use the camera overlay and then when I take the screenshot, I have the image that the camera preview had been showing and my overlay on there too, which…
fdf33
  • 73
  • 1
  • 9
3
votes
5 answers

Keyboard not dismissing when another UITextField is tapped that brings up a picker

I have 2 text fields that I am working with each one when clicked opens up a picker wheel with a toolbar on top that gives the option to dismiss the picker and bring up a keyboard everything works fine unless you dismiss the picker and bring up the…
BluGeni
  • 3,378
  • 8
  • 36
  • 64
2
votes
2 answers

Starting a augmented reality (AR) app like Panasonic VIERA AR Setup Simulator

Im looking to create an iOS app similar to Panasonic VIERA AR Setup Simulator but with other products. I was trying to figure conceptually how to do this, and where would be a good place to start. any ideas or suggestions would be greatly…
OscarTheGrouch
  • 2,374
  • 4
  • 28
  • 39
2
votes
2 answers

How to create a custom Picker view controller in iPhone?

I want to create a custom picker view controller. When user selects the particular data in the picker list, then will displayed the check mark image for selected category. How do i set the custom image as selected the category. I have created a…
Pugalmuni
  • 9,350
  • 8
  • 56
  • 97
2
votes
2 answers

PickerView invisible against a black background

This might be a silly and really simple question, but I've not been able to solve it. I have a view controller with a black background onto which I have placed a PickerView control. I have set the delegate and datasource and have confirmed they are…
2
votes
2 answers

How to show selected value of a UIPickerView according to label

I am trying to show the UIPickerView with a selected value according to the value of a label in the view. For example if the label value is 2 and when I open the pickerView I want the value two to be selected in the picker. How would this happen? My…
Cem
  • 60
  • 7
1
2 3 4 5 6 7