thanks a billion. I have been messing with this concept through 15 tutorials, that don't really work. I needed this knowledge and appreciate it !!!!! Dale Magnin
You are 100% correct but this was meant to be just an illustration on how to use picker views :) One way to do what you are describing would be to have a UIButton in your first view controller that modally loads another view controller with a picker view in it. Then set your values using the picker view and dismiss that view controller.
Are you able to make other videos on what else can be done with Pickerview? I was wanting each PickerView to take me to a new view controller. How can this be done? BTW- awesome tutorial... everything worked the first go
Ah. You can still do that manually. Go to your class and header file and create an IBOutlet (property) for that UIImageView and any other objects needed. Also synthesize it in the implementation file. Then jump back to Interface Builder and right click each item and drag a connection from the menu item to file's owner. If you have defined your outlets correctly, the appropriate options will show up in a menu. (I believe this latter functionality is available in that version of xCode).
Great video, well explained and just super :) I was thinking if i want to put second view picker in same view do i need to do everything again as with the first picker or is there any shortcut, thanks
Really helpful and indeapth tutorial. One question is that my software version does not have the File Owner icon on the interface. My version is 4.5.2. At 8:00 in the tutorial, where should I drag the connector lines?
thank you very much, its help me a lot, and your explanation was very clear, i try to make it using UITextField and its working fine, but i have question if you can help me. how if i want to make the picker view hidden and i want to enable it when i click on the textField
Great tutorial! I have run into a slight hiccup though. It works great in my simulator but crashes on my device. I am having memory warnings with this code, that ends up crashing my app. I believe I need to retain the images within this pickercontroller. Do you know how to do that, or what the solution might be?
Thanks again. But after all my "@synthesize" lines he shows me an error. By @synthesize characterImage; he shows me: "error: synthesized property 'characterImage' must either be named the same as a compatible ivar or must explicitly name an ivar" What does that mean?... has it something to do with the trick on 05:22? And what about "strong" in the @property(strong,nonatomic), which isn't colored right now?
Yes! The problem was I had my png files all over 2MB (I come from a production background and love HQ) So I recreated each png to an 1/8th of original size and that got rid of the crashes.
im trying to populate my *urL with the contents of the picker view i.e: if pickerview is showing "vid 1" then pressing the UIRecbutton labelled "play vid" would play vid 1, ect.. any help greatly appreciated, i have all code set up apart from how to get picker view info to vid player : if the row in pickerview reads Video1, video2 ect.. how to i get this info to the pathforresource & have it default to movie type, i.e.: mov, mpeg4 . tx franco
Hmm... I followed your tutorial, but when I try to run it on the simulator, I get a black screen. No errors when building. Any Ideas? (I used Numbers instead of text for the picker, if it matters. Still in "".)
Hey Benny - I dont think it should be very much different. If that's what you are running, just try it - I dont think the methods (functions) have changed that much
usually you want a picker view on user's request. Say the user click on a data entry (button) and the picker view appears, user make choice, and pickerview go away.. This tutorial is "half way" as you never want "just a pickerview" app... but great info nonetheless.
Sorry its taken a while to respond. Its not possible to change the height in Interface Builder, but you may be able to do it programmatically. Take a look at this thread on Stack Overflow: stackoverflow(dot)com/questions/573979/how-to-change-uipickerview-height
Hmm. That's odd. When you say you used numbers in double quotes - You mean you still created NSStrings correct? Maybe post or message me with at least your viewDidLoad method and your pickerView: titleForRow: forComponent methods contents.
thanks a billion. I have been messing with this concept through 15 tutorials, that don't really work.
I needed this knowledge and appreciate it !!!!!
Dale Magnin
Glad to hear it helped. Since the picker is really just a mechanism to select things, you could really combine it with most other items.
Thank you very much for posting this video vtkurup! I learned a few other helpful tips, other than implementing a UIPickerView. Very helpful!
Thank you Vishal. I like your style and level of detail in your tutorial. This was very helpful for me.
Great Lesson! You have a gift for teaching Xcode!
You are 100% correct but this was meant to be just an illustration on how to use picker views :) One way to do what you are describing would be to have a UIButton in your first view controller that modally loads another view controller with a picker view in it. Then set your values using the picker view and dismiss that view controller.
Thanks for the kind words. Glad the tutorial helped!
You are most welcome Scott! Thanks for the kind words.
Congratulations!
great lesson!
Brilliant tutorial. Thanks so much!
just what I needed. thank you!
No problem Dale. Glad it helped!
You are most welcome! Glad it helped!
Are you able to make other videos on what else can be done with Pickerview?
I was wanting each PickerView to take me to a new view controller. How can this be done?
BTW- awesome tutorial... everything worked the first go
Thanks for the kind words!
muchas gracias amigo, me has ayudado demasiado. Busqué mucho como poder hacer esto. Gracias
Blessings...!!!
Ah. You can still do that manually. Go to your class and header file and create an IBOutlet (property) for that UIImageView and any other objects needed. Also synthesize it in the implementation file. Then jump back to Interface Builder and right click each item and drag a connection from the menu item to file's owner. If you have defined your outlets correctly, the appropriate options will show up in a menu. (I believe this latter functionality is available in that version of xCode).
Great video, well explained and just super :)
I was thinking if i want to put second view picker in same view do i need to do everything again as with the first picker or is there any shortcut, thanks
Glad I could help!
Thanks for the video!! Even works with Xcode 5
Glad I could help Akash! I need to update some of these for iOS 7 :)
Will you do tutorials on NSDictionary? That is what I am having trouble with. Thanks in advance!!
Great tutorial, thanks! :)
Gracias Carlos!
Really helpful and indeapth tutorial. One question is that my software version does not have the File Owner icon on the interface. My version is 4.5.2. At 8:00 in the tutorial, where should I drag the connector lines?
De nada Mauricio!
Glad to help!
Thanks Layth!
very useful, thanks a lot!
First great video. Thanks for it.. Do you know if it is posible to change the Hight of the Picker view?
thank you very much, its help me a lot, and your explanation was very clear, i try to make it using UITextField and its working fine, but i have question if you can help me. how if i want to make the picker view hidden and i want to enable it when i click on the textField
Good Tutor thank you.
Very helpful! thanks
Thanks for the fast reply.
But how could I do the magic trick on 05:22, without the Assistant Editor?
Thank you sir! :)
Cheers pal!
Thanks a lot! If I want to create 3 of components and images
how to do that?
Hey i am following the video correctly, what xcide version are you on at the time, im on 4.6
Howdy! Did you get this bug resolved? I have been a little swamped and havent had a chance to take a look at this yet, but can do so if needed.
Great tutorial! I have run into a slight hiccup though. It works great in my simulator but crashes on my device. I am having memory warnings with this code, that ends up crashing my app. I believe I need to retain the images within this pickercontroller. Do you know how to do that, or what the solution might be?
Jackson - In this video I was using version 4.3.2 - It's in the title.
A couple is two!!
Great video though.
Can we make the selection in Pickerview take us to a new page rather than displaying the selection at the top or bottom of the page?
Its possible that its just hidden. Try toggling one of the views in the upper right corner of the window.
Thanks again.
But after all my "@synthesize" lines he shows me an error.
By @synthesize characterImage; he shows me:
"error: synthesized property 'characterImage' must either be named the same as a compatible ivar or must explicitly name an ivar"
What does that mean?... has it something to do with the trick on 05:22?
And what about "strong" in the @property(strong,nonatomic), which isn't colored right now?
Yes! The problem was I had my png files all over 2MB (I come from a production background and love HQ) So I recreated each png to an 1/8th of original size and that got rid of the crashes.
great !!
No problem Vignesh. Hope it helped.
im trying to populate my *urL with the contents of the picker view i.e: if pickerview is showing "vid 1" then pressing the UIRecbutton labelled "play vid" would play vid 1, ect.. any help greatly appreciated, i have all code set up apart from how to get picker view info to vid player :
if the row in pickerview reads Video1, video2 ect.. how to i get this info to the pathforresource & have it default to movie type, i.e.: mov, mpeg4 .
tx franco
Hmm... I followed your tutorial, but when I try to run it on the simulator, I get a black screen. No errors when building. Any Ideas? (I used Numbers instead of text for the picker, if it matters. Still in "".)
How can you load the second component base on the first
Hey Benny - I dont think it should be very much different. If that's what you are running, just try it - I dont think the methods (functions) have changed that much
I dont have that sidebar where File's owner is at 8:10. Please help!
Thanks!
usually you want a picker view on user's request. Say the user click on a data entry (button) and the picker view appears, user make choice, and pickerview go away.. This tutorial is "half way" as you never want "just a pickerview" app... but great info nonetheless.
Sean, sorry its taken me a while to respond. I didn't think that was even possible if you had an XIB/NIB file:) Did you get this resolved?
Sorry its taken a while to respond. Its not possible to change the height in Interface Builder, but you may be able to do it programmatically. Take a look at this thread on Stack Overflow: stackoverflow(dot)com/questions/573979/how-to-change-uipickerview-height
Sorry its taken me a while to respond. Did you resolve this bug?
Hmm. That's odd. When you say you used numbers in double quotes - You mean you still created NSStrings correct? Maybe post or message me with at least your viewDidLoad method and your pickerView: titleForRow: forComponent methods contents.
how is it possible to make this on xcode 3.2.1?
you do not enable storyboard
thanks
me like=)
I believe he is using a project with a storyboard.
You purists!!! hehehe.