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
1 answer

how to change elements on UIpickerView pushing a button or pushing another button

I have an application, that in the main view, have 3 buttons, and the 2 firts buttons have to show an UIPickerView for a selection of event (one of them) and a selection of time (the second). UIPickerViewDelegate only let me to implement the methods…
0
votes
2 answers

how to stop UIPickerView reusability

I'm working on a custom PickerView, i have a two components in the picker (hours, minutes), i have made the "0" in the minutes component gray and not selectable, everything works fine except that the rows are getting reused... my Minutes component…
DevCali
  • 398
  • 6
  • 20
0
votes
0 answers

UIpicker selection controlled by plist

If i have a UILabel saved a time, saved in plist using the below codes. Now i could like to load the time e.g. 1:00am and display the time (1:00am) on a UIPicker in another view controller in the storyboard. How this can be done? Thanks -…
Clarence
  • 1,951
  • 2
  • 34
  • 49
0
votes
1 answer

Paging UIScrollView - How to flick multiple pages at a time

I have a paging scrollview much like Apple's Page Control example project which I have adapted into a horizontal picker. I would really like the ability to scroll through many pages per flick gesture instead of one-at-a-time, much like how…
capikaw
  • 12,232
  • 2
  • 43
  • 46
0
votes
3 answers

Generating smaller previews of selected images from image picker controller

Here is what I am planning: user taps on a button. a uiimage picker view controller displays user selects an image a thumbnail view of selected image should be saved in my application. ( like ui picker view has after selecting albums, there is…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
0
votes
4 answers

Decrease the margin of content of UIPickerView ios

Modification due to the first 2 answers : what I want to modify is not the height of the UIPickerview. What I want is to make the content of UIPicker begins from the upper side of UIPicker. Here is an example: I want to delete the margin shown in…
Mathieu
  • 1,491
  • 5
  • 17
  • 37
0
votes
1 answer

UIImagePickerController After taking 5 images sequentially Terminates Application

//This method Launches the picker to take the picture from camera. -(IBAction)takeyouphoto:(id)sender { if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { // Create image picker…
Rahul
  • 509
  • 2
  • 4
  • 22
0
votes
1 answer

UIPickerViewDelegate Methods Not Getting Called

I have created a custom view that contains a UIPickerView and a UITableViewCell to display the contents currently selected in the picker. My PickerViewController is set as both the delegate and dataSource of the picker, and I have implemented…
sethfri
  • 1,307
  • 1
  • 15
  • 31
0
votes
1 answer

How I Can Configure "DidSelectRow" In a Multi- UIPICKERVIEW?

Ok, guys here is my problem, I'm doing a Resistor calculator for electronic students with a uipickerview, but i dont have any idea how to configurate the method of "DidSelectRow". The idea of this resistor calculator is when the user select the…
0
votes
2 answers

Custom Look & Feel of UIPickerView;

I want a UIPickerView in following design; http://dl.dropbox.com/u/53051470/Screen%20shot%202012-04-18%20at%2012.02.36%20PM.png (sorry as a new user, can't paste image here) I read other questions on same topic too, and try to implement…
Ans
  • 3,461
  • 3
  • 23
  • 24
-1
votes
3 answers

UIPicker selectRow

I am trying to select the first row as default.. Here i tried -(void)pickerViewLoaded{ [pickerView setShowSelectionIndicator:YES]; pickerView.delegate = self; [pickerView reloadAllComponents]; [pickerView selectRow:1 inComponent:0…
Praveen
  • 31
  • 1
  • 2
  • 5
-2
votes
1 answer

Where I create the method from action:@selector from a UIToolBar in a PickerView with a delegate different then self?

I create a Cocoa Touch Class, called MyPLayer MyPLayer.h @interface MyPLayer : NSObject and inside there I create a picker view. MyPlayer.m @implementation…
-2
votes
1 answer

UIPicker selection from NSUserDefaults in double value

I'm beginner developer... I have NSUserDefaults to get UIPicker selection and a double value where to load selection of the UIPicker. NSUserDefaults *pickerViewSelectionDefaults = [NSUserDefaults standardUserDefaults]; [pickerWork…
-2
votes
1 answer

Saving Video From Camera Roll to Documents

How can I save a video selected from the camera roll to a specific destination? In my case I want to save the selected video to destinationPath. Also how can I get the duration of the video? Code: - (void) imagePickerController:…
SpaceShroomies
  • 1,635
  • 2
  • 17
  • 23
-2
votes
1 answer

Block syntax translation problems Objective C to Swift

TWPhotoPickerController *photoPicker = [[TWPhotoPickerController alloc] init]; photoPicker.cropBlock = ^(UIImage *image) { //do something }; [self presentViewController:photoPicker animated:YES completion:NULL]; Been stuck on this for way too…