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
0
votes
0 answers

Cannot share image to Facebook and messenger

I have implemented a UIActivityController that retrieves an image from UIPickerViewController. I am able to successfully share text and image via text message but I cannot share the same through Facebook or messenger. override func tableView(_…
0
votes
1 answer

If UITextField is blank UIAlert does not appear

I have an application with 4 UITextFields and what I want to do is display a UIAlert if a UITextfield is blank. I have the function I have chosen to display the UIAlert which is as follows: func displayMyAlertMessage(userMessage: String) { let…
AltBrian
  • 2,392
  • 9
  • 29
  • 58
0
votes
0 answers

UIPickerView Default Rolls back changed

I am beside myself. My simple task is to use a pickerView to set a default value if it was previouly set When it closed. But the problem is in ny logic. It rolls to the default row and sets the title but when I try to change it, it scrolls back to…
Belga
  • 1
  • 2
0
votes
1 answer

Swift 4 Odd unexpected jump back to earlier storyboard

I’m very new to Swift and Xcode and I’ve built a simple two storyboard app which has a welcome screen and a button that triggers a seque to second storyboard (for which I have created its own class based on UIVIewController. Second storyboard has a…
RobM
  • 111
  • 1
  • 9
0
votes
1 answer

UIPickerView does not always show values in 3g

I have a really strange error, the application in this application uses the pattern-view-controller, in the view I use a UIPickerView to display names. Values ​​should be shown in RisorseUmaneUIPicker! The strange thing is that everything works…
riki
  • 1,502
  • 5
  • 17
  • 45
0
votes
1 answer

UIPickerView connections

I'm having a problem with the connections of UIPickerView. My viewController class looks like this: @interface MyViewController: UIViewController { IBOutlet UIPickerView…
Namratha
  • 16,630
  • 27
  • 90
  • 125
0
votes
0 answers

reload pickerview depending on data in textfield

I'm using Swift 3. Here is the code: public func numberOfComponents(in pickerView: UIPickerView) -> Int { return 1 } public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { if…
0
votes
4 answers

UIimage Detect Landscape Image with Swift

I want to read a photo from Library in this function func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { let pickedImage = info[UIImagePickerControllerOriginalImage] as?…
Miloo
  • 117
  • 1
  • 2
  • 10
0
votes
1 answer

PickerView to return certain text string based on picker selection

What I would like to do is have a certain text string to appear depending on what is selected from the Picker. For instance, the choices Blue, Green, and Yellow are available for selection in the picker. When you choose Blue some text (ex. I LOVE…
0
votes
1 answer

How to use MRCountryPickerDelegate

I am trying to implement MRCountryPicker for selecting Country Flag and Code.I have installed pods. now i have no idea how can i get delegate method or how can i declare like this "MRCountryPickerDelegate" for more detail check…
0
votes
1 answer

Can I customize the title of the buttons at the Camera Controls with Custom Camera Overlay?

I have a big issue, I'm developing an Application that is in Spanish, so al the labels and controls needs to be in Spanish. The thing is when I pick a Photo from the Camera, the Default Camera Controls comes in english: "Take Photo", "Cancel" and…
0
votes
0 answers

after dismissviewmodalviewcontroller pickerviewmodel value null in ios

I am facing an issue which soon will make me crazy. I have pickermodel, with numbers. I choose a number from the picker, and then I take picture. When I dismissmodalviewcontroller, I can see my viewcontroller in the pickermodel shows the same number…
0
votes
1 answer

UIPikerViewController for ios 10

I wrote code about a year ago, where I load photo or picture to network. But now this code not working. I think it is connected to that now I use IOS 10. In logs : [Generic] Creating an image format with an unknown type is an…
0
votes
0 answers

How to connect Picker view to Table view

I have a picker view in place which works perfectly. I want to connect it to a table view where once a selection is made in the picker, it takes you straight to the table view for each individual selection. How do I connect my picker view to the…
0
votes
2 answers

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…
ashp
  • 1
  • 1