Images in UITextFields - (iOS, Xcode 8, Swift 3)

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 145

  • @srithanreddysavela2845
    @srithanreddysavela2845 6 лет назад +1

    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.

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад

      That's great to hear! Glad my videos can help you. 👍

  • @Nicotrz
    @Nicotrz 4 года назад +2

    i had no idea you could personalize IB! Thanks for the tips!

  • @chudq
    @chudq 6 лет назад +1

    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.

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад +1

      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.)

    • @chudq
      @chudq 6 лет назад +1

      Thank you for the hint.@@bigmtnstudio

  • @StewartLynch
    @StewartLynch 7 лет назад +1

    This is a fantastic video. Why did I not know about Mark before? Subscribed now. I love the presentation style.

  • @vhoraprakashkumarmahendrab3257
    @vhoraprakashkumarmahendrab3257 2 года назад

    Hi Mark.
    I am very grateful to you to make video like this .I have been learning advance iOS from your tutorial .
    Thanks

  • @vishnusatheesh6645
    @vishnusatheesh6645 5 лет назад

    Great video. If you could do a tutorial series on adaptive designing , it would be great.

  • @gegao9066
    @gegao9066 6 лет назад

    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!

  • @calebout
    @calebout 7 лет назад

    I am currently working on a great at in Cambodia and hope the tips I learned from you will make my app boost ;-)

  • @chenshevie
    @chenshevie 7 лет назад

    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?

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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. :)

  • @garrettosborne4364
    @garrettosborne4364 6 лет назад +1

    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.

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад +1

      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.

  • @nizz4m
    @nizz4m 7 лет назад

    Great tutorial !
    How to achieve an icon when pressed is supposed to toggle the secure text entry on and off (Show/Hide Password) ?

  • @mahmoudargui4720
    @mahmoudargui4720 7 лет назад +1

    You are an Extension wizard pal ! Keep it up (y)

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      +Mahmoud Argui, yeah man, well do!

  • @chrispy104k
    @chrispy104k 6 лет назад +1

    Very useful code snippet. Thank you indeed. Subscribed.

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад

      That's great! Welcome to the channel and I hope you like most of my videos. 😂

  • @BirenPatel
    @BirenPatel 7 лет назад +1

    BEST TEXTFIELD TUTORIAL EVER!!!!!!!

  • @ryuichichua7010
    @ryuichichua7010 7 лет назад

    Great video! However, I'm having trouble trying to change the left image variable in the view controller. Thanks

  • @sylviogiraldes
    @sylviogiraldes 6 лет назад

    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.

  • @ynrcftc1874
    @ynrcftc1874 6 лет назад +1

    Excellent ! best tutorial for swift 4 and xcode 9. thank you.

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад

      Good to hear it still works for Swift 4!

  • @md.rasheduzzaman2125
    @md.rasheduzzaman2125 7 лет назад +1

    I never seen like this, great tuts. Thanks
    I'm requesting you to design an eCommerce UI template using swift 3 and Google Firebase.

  • @CutePoisonization
    @CutePoisonization 7 лет назад +1

    That's exactly what i was looking for. A big Thank YOU!

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      +CutePoisonization, that's awesome! I'm glad it helped!

  • @jasur3442
    @jasur3442 7 лет назад

    thanks bro for a helpful tutorial. I wanted to know whether it is possible to show UIButton instead of UIImage?

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад +1

      Yeah, Jack, you can. You can put a UIButton inside a UIView. Then assign that UIView to the UITextField.rightView or UITextField.leftView.

    • @jasur3442
      @jasur3442 7 лет назад +1

      Thank You ! Your videos are so helpful and I hope you can keep up with your uploads

  • @garynelson9151
    @garynelson9151 7 лет назад +1

    Very well done explaining. Thanks a ton!

  • @rl-pavel
    @rl-pavel 7 лет назад +2

    Do you accept any video requests?
    If you do, I would love to see something on tableview cells :)

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      OK, sounds good. I keep a running list of future videos. I'll add this!

  • @hiepingchan3759
    @hiepingchan3759 7 лет назад +1

    What a masterpiece! really great tutorial, so helpful! Thanks so much.

  • @prempratapsingh4181
    @prempratapsingh4181 7 лет назад +1

    Wow, what a great tutorial! Thank you so much!

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      +Prem Pratap Singh, you're welcome! Glad you liked it. 😉

  • @bircanbayram3144
    @bircanbayram3144 7 лет назад +1

    your tutorials are very helpful, thank you so much good luck :)

  • @WhatsNextTec
    @WhatsNextTec 7 лет назад

    Hey! i was wondering how to include a property to change the text holder color

  • @iamsanketray
    @iamsanketray 7 лет назад +2

    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.

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад +2

      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).

  • @CutePoisonization
    @CutePoisonization 7 лет назад

    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

  • @bravehearted1010
    @bravehearted1010 7 лет назад +1

    Very nice tutorial!!! You teach very well :D :D

  • @ketansutariya40
    @ketansutariya40 7 лет назад +1

    You are amaizing to clear the concept... thanks a lot..

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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.

  • @shalikalahiru5741
    @shalikalahiru5741 6 лет назад +1

    its very useful to me. thank you very much.can i do this thing to button

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад

      Oh good to hear! In glad it was useful. 👍

  • @nomanzafar2099
    @nomanzafar2099 5 лет назад +1

    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?

    • @bigmtnstudio
      @bigmtnstudio  5 лет назад +1

      Exactly, Raja. For example, I've used this on a login screen for the username and password text fields.

    • @nomanzafar2099
      @nomanzafar2099 5 лет назад +1

      Thanks @@bigmtnstudio, You are great, Best ever tutor I have found for IOS app develoment.😇

    • @bigmtnstudio
      @bigmtnstudio  5 лет назад +1

      @@nomanzafar2099 , ha ha, thanks man! ✊🏼

    • @nomanzafar2099
      @nomanzafar2099 5 лет назад

      @@bigmtnstudio ❤❤

  • @calebout
    @calebout 7 лет назад +1

    Great info, I love your tutorials.

  • @dirkkarger6438
    @dirkkarger6438 7 лет назад

    Best Swift videos i have seen on RUclips 👍

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Wow, thanks, Dirk! I appreciate the kind words!

    • @MatheusFaleiro
      @MatheusFaleiro 7 лет назад +1

      He's completely right! Finally, I found a channel like yours. Keep doing this amazing work!

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Thanks, Matheus!

  • @fawadfarooq
    @fawadfarooq 7 лет назад +7

    Excellent !

  • @elpapi123ist
    @elpapi123ist 7 лет назад +1

    Excellent tutorial, instant subscribe!

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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.

  • @murad3460
    @murad3460 7 лет назад +1

    Thanks for the tutorial homie

  • @VinayakSrivastava101
    @VinayakSrivastava101 7 лет назад +1

    Great example

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      +Vinayak Srivastava, thanks. I try to keep the examples practical.

  • @shrikalamarwadi4590
    @shrikalamarwadi4590 7 лет назад +1

    Very Helpful Thank you so much Mark :-)

  • @waleed.alyazidy
    @waleed.alyazidy 7 лет назад +1

    Awesome. Thank you!

  • @williamluque5268
    @williamluque5268 7 лет назад

    awesome! but i was wondering if can do the same with a button...this for hide/show password

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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!

    • @williamluque5268
      @williamluque5268 7 лет назад

      thanks for answer.

  • @vigneshwaran6348
    @vigneshwaran6348 4 года назад +1

    Thanks sir good tutorial

  • @dec7952
    @dec7952 7 лет назад +1

    Just so everyone is aware, "NSForegroundColorAttributeName" is now "NSAttributedStringKey.foregroundColor"

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад +1

      Thanks for pointing that out! Every time I convert to Swift 4 it always makes this update.

  • @pijushdebbarma7979
    @pijushdebbarma7979 6 лет назад +1

    Awesome video, thanks

  • @Msghostteam
    @Msghostteam 7 лет назад +1

    wow !!! Really big thx for this video

  • @jidsart
    @jidsart 6 лет назад +1

    wow... thanks for this tutorial!!!

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад +1

      You're welcome! Hope it helped. 😀

  • @syedaurangzaib3861
    @syedaurangzaib3861 6 лет назад +1

    super tutorial, also teaching method nice :)

  • @kurocatadventures
    @kurocatadventures 7 лет назад

    You gave me a great tutorial.

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Thanks, Kakada. I'm glad you enjoyed it!

    • @kurocatadventures
      @kurocatadventures 7 лет назад

      How can I add image in UIButton? Thanks

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Here's a video where I teach that: ruclips.net/video/JQ5i2YKwvJ8/видео.html

  • @russel_dev
    @russel_dev 7 лет назад +1

    what a marvellous tutorial ... thank you

  • @bluechip1311
    @bluechip1311 6 лет назад +1

    Thank you for your tutorial. But now Swift 4 don't use "NSForegroundColorAttributeName" anymore. It changes to "foregroundColor".

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад +1

      You are correct. When I open older projects Xcode prompts me to upgrade my version of Swift and changes this for me.

    • @bluechip1311
      @bluechip1311 6 лет назад

      yeah. it's just a little feedback to you. your tutorial is still great.

  • @seang.2893
    @seang.2893 7 лет назад +1

    How do you add padding for the text in the textfield?

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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.

    • @seang.2893
      @seang.2893 7 лет назад

      Ohh ok thx

  • @tigrantt
    @tigrantt 6 лет назад +2

    Really great tutorial! So Effortless to follow!

    • @bigmtnstudio
      @bigmtnstudio  6 лет назад

      Thank you! I make tutorials the way I would want to be taught. So I'm glad you like it!

  • @EdmntnWal
    @EdmntnWal 7 лет назад +1

    Thanks a lot.. great tutorial

  • @schevgeny
    @schevgeny 4 года назад

    good script! thanks

  • @jeremyseibert7653
    @jeremyseibert7653 7 лет назад

    Awesome!!!!!!! Thank you

  • @sorrefly
    @sorrefly 7 лет назад

    I didn't actually get the UIView and frame part

  • @kurusanyasuke2853
    @kurusanyasuke2853 7 лет назад +1

    you are the best 😆

  •  7 лет назад +1

    you got a permanent subscriber

  • @Princebharti9971
    @Princebharti9971 6 лет назад +1

    Awsome !!

  • @securemastery2599
    @securemastery2599 4 года назад

    it helps alot

  • @alexintergen9264
    @alexintergen9264 5 лет назад

    I followed everything step by step and no change in the text field at all.. any help? i am a beginner..

    • @bigmtnstudio
      @bigmtnstudio  5 лет назад

      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
      @alexweb5352 5 лет назад +1

      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

    • @bigmtnstudio
      @bigmtnstudio  5 лет назад

      @@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".

  • @mikethefrog7119
    @mikethefrog7119 6 лет назад

    Awesome :-)

  • @ChisinClasher
    @ChisinClasher 7 лет назад +1

    subbed

  • @penapple1213
    @penapple1213 7 лет назад

    Anyone know how to implement the "--or--" line?

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Those lines on each side are UIViews with like a 2 point height.

  • @kunchalasai
    @kunchalasai 7 лет назад +1

    u r awesome bro

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Thanks! :D

    • @kunchalasai
      @kunchalasai 7 лет назад

      Pls try to make a video on AutoLayouts!!

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      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?

  • @shyamshukla6250
    @shyamshukla6250 7 лет назад +1

    Wow amazing explains

  • @Architect_Mobile
    @Architect_Mobile 6 лет назад +1

    Круто , круто , круто !!!!!!!!!!!!! Ты крутой ))))) Спасибо )))

  • @archen007
    @archen007 7 лет назад +1

    That one troll who downvotes the rare perfect lesson...

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      Ha ha ha, yeah, you're always going to get a few of those guys.

  • @appsdev4672
    @appsdev4672 7 лет назад +1

    Wow, Man you are awesome ! I hope you can make some more tutorial of making custom views like popup lists :)
    Like & Subscribe

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад

      +Apps Dev, can you explain more what you're looking for with custom views?

    • @appsdev4672
      @appsdev4672 7 лет назад +1

      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

    • @appsdev4672
      @appsdev4672 7 лет назад

      BTW, some of the list has more than 40 items to choose from so the list must be scrollable

    • @bigmtnstudio
      @bigmtnstudio  7 лет назад +1

      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. 🙂

    • @appsdev4672
      @appsdev4672 7 лет назад

      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