One of the best iOS Tutorial. You show A-Z content about one topic. You teach how to avoid errors by checking for certain conditions. This is awesome. I'm already feeling like a professional iOS Dev after watching this.
Great tut! It can be further extended to a class: adding clear button on right side and clearing text on tapping. Only show the clear button image when the field not empty. Users will love this quick and convenient way to clear text.
That's a great idea. You could really customize how you want it to look. (There is a built-in one you could also use. In Attributes inspector it's the "Clear Button" option.)
Hey man! Awesome tutorial! Helped me a lot! There is a nice little space between the image and the place holder now, but when I actually start typing, the space disappears cuz the placeholder text is automatically margined. How to delete the default margin? Thanks!
Your videos are awesome, I am learning so much! thank you!!! Could you make a video on resources you use when you try to solve a problem? what documentation you recommend referring to, and such?
Hi Shevie, you might be interested in my latest video series: ruclips.net/video/EN_Z8z-6UEw/видео.html Here you see me programming with no preparation and how I program and what resources I use to put the project together. :)
Learned a great deal. My question: Why wouldn't you just change the x coordinate for imageView from x=0 to x=5? It would seem that would solve the problem without needing to bring in the UIView object.
Tks a lot Mark. After textfield becomes a userTextField we loose access to resources like Int( userTextField.text) or userTextField.text.toInt(). How do you workaround this ? Tks again.
Hi Sanket. Yes, the .leftView and .rightView properties are UIView types. That means you can put anything in them. Think of it as adding a UIView to your storyboard and all the things you can put inside that UIView. So it's the same thing with .leftView and .rightView on a UITextField. Be creative! 😀 I'd love to see what you come up with if you want to post it on Twitter and tag me on it (@bigmtnstudio).
Hay Mark I did exactly what you said in this video, but i dont see the image "icon" coming in textfield, nor design time nor runtime. not sure wht m doing wrong, only diff i see is images. Is there any specific description how the images should be. i mean m using png file and tried ico file as well . pls help
Awesome! Hope you like my other tutorials! Feel free to comment if you see any room for improvement too! I'm always looking for ways to improve the tutorials.
That's a good question, William. I'm not sure to be honest. You could definitely add a button because it is just a UIView. But I'm wondering where the action outlet would live. Maybe right in the custom class? You'll have to experiment!
Hey Alex, try checking your code against what I have in github: github.com/bigmountainstudio/DesignableX/blob/master/DesignableXTesting/DesignableXTesting/DesignableX/UITextFieldX.swift 👆🏼This one has been updated for Swift 4.2
@@alexweb5352 Oh that's awesome! In the github file I had added padding. I found out I needed the same thing. Look for the properties "leftPadding" and "rightPadding".
Have you seen this one: ruclips.net/video/xtZmjC9JiDY/видео.html Not sure if it will help or not. Is there a specific problem you are having? Or are you looking for more of a general overview?
Hi Mark, actually i'm working on a project that have multiple choices for the user to choose from to be more specific the user has to choose the governerate first then to choose the manufacturing company and the to choose the item model and keep going, so i thinkd of some reusable popup list that i can present with each choice and to replace its data source as needed
Ok I get what you're saying. Have you looked into maybe using picker views. Like look at how the calendar app works. You can select a field and it expands into a picker where you can choose an answer. Just an option to think about. 🙂
I really thought about it, but the main idea is to build a reusable control so i can use it when ever i need in the project and with ease of changing its data source. any way thanks for your appreciate follow up
One of the best iOS Tutorial. You show A-Z content about one topic. You teach how to avoid errors by checking for certain conditions. This is awesome. I'm already feeling like a professional iOS Dev after watching this.
That's great to hear! Glad my videos can help you. 👍
i had no idea you could personalize IB! Thanks for the tips!
Nicolas Sommereijns No problem!
Great tut! It can be further extended to a class: adding clear button on right side and clearing text on tapping. Only show the clear button image when the field not empty. Users will love this quick and convenient way to clear text.
That's a great idea. You could really customize how you want it to look.
(There is a built-in one you could also use. In Attributes inspector it's the "Clear Button" option.)
Thank you for the hint.@@bigmtnstudio
This is a fantastic video. Why did I not know about Mark before? Subscribed now. I love the presentation style.
Pleased to meet you, Stewart!
Hi Mark.
I am very grateful to you to make video like this .I have been learning advance iOS from your tutorial .
Thanks
Great video. If you could do a tutorial series on adaptive designing , it would be great.
Hey man! Awesome tutorial! Helped me a lot! There is a nice little space between the image and the place holder now, but when I actually start typing, the space disappears cuz the placeholder text is automatically margined. How to delete the default margin? Thanks!
I am currently working on a great at in Cambodia and hope the tips I learned from you will make my app boost ;-)
Good luck on your app, Pascal!
Your videos are awesome, I am learning so much! thank you!!! Could you make a video on resources you use when you try to solve a problem? what documentation you recommend referring to, and such?
Hi Shevie, you might be interested in my latest video series: ruclips.net/video/EN_Z8z-6UEw/видео.html
Here you see me programming with no preparation and how I program and what resources I use to put the project together. :)
Learned a great deal. My question: Why wouldn't you just change the x coordinate for imageView from x=0 to x=5? It would seem that would solve the problem without needing to bring in the UIView object.
That's a good question. This was so long ago that I don't remember my reasoning back then.But it makes sense what you're saying.
Great tutorial !
How to achieve an icon when pressed is supposed to toggle the secure text entry on and off (Show/Hide Password) ?
You are an Extension wizard pal ! Keep it up (y)
+Mahmoud Argui, yeah man, well do!
Very useful code snippet. Thank you indeed. Subscribed.
That's great! Welcome to the channel and I hope you like most of my videos. 😂
BEST TEXTFIELD TUTORIAL EVER!!!!!!!
Biren Patel Thank you!
Great video! However, I'm having trouble trying to change the left image variable in the view controller. Thanks
Tks a lot Mark. After textfield becomes a userTextField we loose access to resources like Int( userTextField.text) or userTextField.text.toInt(). How do you workaround this ? Tks again.
Excellent ! best tutorial for swift 4 and xcode 9. thank you.
Good to hear it still works for Swift 4!
I never seen like this, great tuts. Thanks
I'm requesting you to design an eCommerce UI template using swift 3 and Google Firebase.
That's exactly what i was looking for. A big Thank YOU!
+CutePoisonization, that's awesome! I'm glad it helped!
thanks bro for a helpful tutorial. I wanted to know whether it is possible to show UIButton instead of UIImage?
Yeah, Jack, you can. You can put a UIButton inside a UIView. Then assign that UIView to the UITextField.rightView or UITextField.leftView.
Thank You ! Your videos are so helpful and I hope you can keep up with your uploads
Very well done explaining. Thanks a ton!
+Gary Nelson, no problem.
Do you accept any video requests?
If you do, I would love to see something on tableview cells :)
OK, sounds good. I keep a running list of future videos. I'll add this!
What a masterpiece! really great tutorial, so helpful! Thanks so much.
You're welcome, Hie Ping!
Wow, what a great tutorial! Thank you so much!
+Prem Pratap Singh, you're welcome! Glad you liked it. 😉
your tutorials are very helpful, thank you so much good luck :)
Thanks, Bircan. :)
Hey! i was wondering how to include a property to change the text holder color
Now that we can add images to textfields, i would like to know how to add images to buttons...like in those "sign in with fb" buttons.
Hi Sanket. Yes, the .leftView and .rightView properties are UIView types. That means you can put anything in them. Think of it as adding a UIView to your storyboard and all the things you can put inside that UIView. So it's the same thing with .leftView and .rightView on a UITextField. Be creative! 😀 I'd love to see what you come up with if you want to post it on Twitter and tag me on it (@bigmtnstudio).
Hay Mark I did exactly what you said in this video, but i dont see the image "icon" coming in textfield, nor design time nor runtime. not sure wht m doing wrong, only diff i see is images.
Is there any specific description how the images should be. i mean m using png file and tried ico file as well .
pls help
Very nice tutorial!!! You teach very well :D :D
Thank you!
You are amaizing to clear the concept... thanks a lot..
Thanks, Ketan! I'm working to improve videos with images to kind of show you the concepts I have in my head. Glad it is helping! Ha ha.
its very useful to me. thank you very much.can i do this thing to button
Oh good to hear! In glad it was useful. 👍
Hey Mark! I need little help.
What if we have to use more than one textfield?
Will we use the same class to that textfield?
Exactly, Raja. For example, I've used this on a login screen for the username and password text fields.
Thanks @@bigmtnstudio, You are great, Best ever tutor I have found for IOS app develoment.😇
@@nomanzafar2099 , ha ha, thanks man! ✊🏼
@@bigmtnstudio ❤❤
Great info, I love your tutorials.
Thanks, Pascal!
Best Swift videos i have seen on RUclips 👍
Wow, thanks, Dirk! I appreciate the kind words!
He's completely right! Finally, I found a channel like yours. Keep doing this amazing work!
Thanks, Matheus!
Excellent !
Thanks!
Excellent tutorial, instant subscribe!
Awesome! Hope you like my other tutorials! Feel free to comment if you see any room for improvement too! I'm always looking for ways to improve the tutorials.
Thanks for the tutorial homie
You got it!
Great example
+Vinayak Srivastava, thanks. I try to keep the examples practical.
Very Helpful Thank you so much Mark :-)
No problem, Shrikala!
Awesome. Thank you!
You're welcome!
awesome! but i was wondering if can do the same with a button...this for hide/show password
That's a good question, William. I'm not sure to be honest. You could definitely add a button because it is just a UIView. But I'm wondering where the action outlet would live. Maybe right in the custom class? You'll have to experiment!
thanks for answer.
Thanks sir good tutorial
You’re welcome!
Just so everyone is aware, "NSForegroundColorAttributeName" is now "NSAttributedStringKey.foregroundColor"
Thanks for pointing that out! Every time I convert to Swift 4 it always makes this update.
Awesome video, thanks
Thanks, Pijush!
wow !!! Really big thx for this video
You're welcome, Yan!
wow... thanks for this tutorial!!!
You're welcome! Hope it helped. 😀
super tutorial, also teaching method nice :)
Thank you, Syed!
You gave me a great tutorial.
Thanks, Kakada. I'm glad you enjoyed it!
How can I add image in UIButton? Thanks
Here's a video where I teach that: ruclips.net/video/JQ5i2YKwvJ8/видео.html
what a marvellous tutorial ... thank you
Thank you. :)
Thank you for your tutorial. But now Swift 4 don't use "NSForegroundColorAttributeName" anymore. It changes to "foregroundColor".
You are correct. When I open older projects Xcode prompts me to upgrade my version of Swift and changes this for me.
yeah. it's just a little feedback to you. your tutorial is still great.
How do you add padding for the text in the textfield?
It has been a while since I've been in this code but I think what you could do is made the UIView (that holds the UIImageView) wider.
Ohh ok thx
Really great tutorial! So Effortless to follow!
Thank you! I make tutorials the way I would want to be taught. So I'm glad you like it!
Thanks a lot.. great tutorial
You're welcome, Walid! :)
good script! thanks
Awesome!!!!!!! Thank you
Ha ha, no problem, Jeremy
I didn't actually get the UIView and frame part
you are the best 😆
Thanks, Kurusan. :)
you got a permanent subscriber
Great! Thank you!
Awsome !!
Thanks!
it helps alot
I followed everything step by step and no change in the text field at all.. any help? i am a beginner..
Hey Alex, try checking your code against what I have in github: github.com/bigmountainstudio/DesignableX/blob/master/DesignableXTesting/DesignableXTesting/DesignableX/UITextFieldX.swift
👆🏼This one has been updated for Swift 4.2
figured it out thank you so much ! only problem i am having is with the padding between the icon and the text now. will keep at it @@bigmtnstudio
@@alexweb5352 Oh that's awesome! In the github file I had added padding. I found out I needed the same thing. Look for the properties "leftPadding" and "rightPadding".
Awesome :-)
Thanks, Mike! 👍🏼
subbed
Anyone know how to implement the "--or--" line?
Those lines on each side are UIViews with like a 2 point height.
u r awesome bro
Thanks! :D
Pls try to make a video on AutoLayouts!!
Have you seen this one: ruclips.net/video/xtZmjC9JiDY/видео.html
Not sure if it will help or not. Is there a specific problem you are having? Or are you looking for more of a general overview?
Wow amazing explains
Thanks, Shyam!
Круто , круто , круто !!!!!!!!!!!!! Ты крутой ))))) Спасибо )))
You're welcome!
That one troll who downvotes the rare perfect lesson...
Ha ha ha, yeah, you're always going to get a few of those guys.
Wow, Man you are awesome ! I hope you can make some more tutorial of making custom views like popup lists :)
Like & Subscribe
+Apps Dev, can you explain more what you're looking for with custom views?
Hi Mark, actually i'm working on a project that have multiple choices for the user to choose from to be more specific the user has to choose the governerate first then to choose the manufacturing company and the to choose the item model and keep going, so i thinkd of some reusable popup list that i can present with each choice and to replace its data source as needed
BTW, some of the list has more than 40 items to choose from so the list must be scrollable
Ok I get what you're saying. Have you looked into maybe using picker views. Like look at how the calendar app works. You can select a field and it expands into a picker where you can choose an answer. Just an option to think about. 🙂
I really thought about it, but the main idea is to build a reusable control so i can use it when ever i need in the project and with ease of changing its data source. any way thanks for your appreciate follow up