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
2
votes
3 answers

Detect orientation change in a UIImagePickerController?

Im trying to detect orientation changes in a UIImagePickerController (it inherits from UINavigationController : UIViewController : UIResponder : NSObject) and I tried override the method - (BOOL)shouldAutorotateToInterfaceOrientation…
Paulo Ferreira
  • 423
  • 2
  • 8
  • 16
2
votes
1 answer

How to reload an object connected in xib

I have a UIViewController (myViewController) with a XIB file. In this XIB file, I have connected an other object UIPickerViewController (myPicker). When my UIViewController is allocated, initialized and pushed as a viewcontroller, the…
2
votes
3 answers

Custom UIPickerController

I have a project where I have a set data model (the model doesn't ever change) that I want to add into a UIPickerView. I am trying to make this UIPickerView stretch from the top of the screen to the bottom of the screen, but when I set the frame,…
Kyle Begeman
  • 7,169
  • 9
  • 40
  • 58
1
vote
1 answer

Two uipicker in the same view

what i am trying to do is to put two uipickers on the same view, i read somewhere that one of them should have its own separate delegate i tried to do so but i couldn't make it work properly. Some times when i run the application the second…
4kr4m
  • 69
  • 2
  • 11
1
vote
1 answer

Extreamly memory usage when picker image from UIImagePickerViewController?

I have implement function for upload image but before upload I will preview image to user. func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) But suddenly I select image to preview, memory usage will super…
OPS Klings
  • 13
  • 4
1
vote
1 answer

Pick video with UIpickerViewController with maximum length of 10 seconds - swift - programmatically

I'm using UIPickerViewController to select images and video from the device camera roll. When I select videos I would like to pick a video of maximum 10 seconds, and if longer to give the possibility for the user to trim it. Until now I've searched…
StackGU
  • 868
  • 9
  • 22
1
vote
1 answer

Iphone two UIPickerView with different data

I wanted to display UIPickerView with number percent. But the second UIPickerView show up same percentage numbers. I don't want that. I want something like…
Jim
  • 11
  • 1
1
vote
1 answer

Getting location details from image in ios swift

I am trying to get location details from image using UIImagePickerControllerReferenceURL but I found that PHAsset.fetchAssets(withALAssetURLs: [URL], options: opts) has been deprecated .Please help me in getting location details. Can we do it using…
sindhu kopparati
  • 223
  • 1
  • 3
  • 7
1
vote
1 answer

How to restrict UIPickerView Component

How to restrict the UIPickerView component scrolling. I have two components in UIPickeView one second component ends scroll allows user to touch the first component to change the value in it. How can I restrict the user to touch component one until…
kiran
  • 4,285
  • 7
  • 53
  • 98
1
vote
2 answers

iPad UIImagePicker Problem !

iam trying import an image from photos library but when i press the import button program crashes and received SGIBART !! but my code works fine on iPhone why ? here is my code : .h : @interface CameraViewController : UIViewController…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
1
vote
1 answer

uipickerview causes memory leak

My problem is there is a memory leak in my application even though I am doing everything right. I am allocing a local uipickerviw, assign that to class member (pickerview) then I dealloc the local uipickerview. Still I get a memory leak, and I don't…
Jayshree
  • 281
  • 1
  • 6
  • 28
1
vote
2 answers

UIImagePickerController Layout Issue - iOS

I am using UIPickerViewController to capture photo, but I am getting layout as below: As you can see in image - The Switch camera button is not showing properly. Below is my code UIImagePickerController *imagePickerController =…
NSSwift
  • 215
  • 2
  • 8
1
vote
2 answers

Reload Component in UI Picker View Swift

I am unable to reload the second component in my UIPickerView that is based on the first component. I tried using the reloadAllComponents but it either does not work or crashes. What I am trying to work on is place car makes on the left and models…
mitch94
  • 236
  • 1
  • 3
  • 11
1
vote
1 answer

Change text of label in ios camera overlay UIPickercontroller

I'm trying to change though a timer in a different method the text of a label I created programmatically in a UIView overlay that goes on a UIImagePickerviewController, but of course when I try to change the text in this way labelname.text =…
overkill
  • 103
  • 2
  • 8
1
vote
0 answers

UIImagePickerController vs status bar iOS8

I'm subclassing UIImagePickerController in attempt to override its default status bar behavior and having mixed results. My app uses view controller-based status bar appearance. Without subclassing, I'm finding that it changes the status bar style…