Fixing UITextField-Keyboard Problems (Swift in Xcode)

Fixing UITextField-Keyboard Problems (Swift in Xcode)

Jared Davidson

9 лет назад

65,166 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

BalaaLyf
BalaaLyf - 27.04.2022 04:00

name is taking more than 12 characters when we give auto suggested words from keyboard.

Ответить
Antonia Bradford
Antonia Bradford - 10.06.2020 16:58

I have been puzzling how to o JUST THIS for the last two days. THANK YOU!.

Ответить
Sophie
Sophie - 04.06.2019 17:47

Can you explain how to do this with a text view? All of my text fields are woking correctly, however, the last part of my form is for inputting notes and that one is hidden by my keyboard.

Ответить
Darkgohn
Darkgohn - 11.04.2019 04:11

Thanks man, I really appreciate your help. It’s works perfectly 👍

Ответить
Hiệp Trần
Hiệp Trần - 15.08.2018 19:57

thanks you so much !

Ответить
Al Mobin
Al Mobin - 23.04.2018 11:08

Love you brother...Helped me a lot!!! subscribed and liked <3

Ответить
Anil Todakar
Anil Todakar - 02.03.2018 09:39

If device is rotate then how it is work?
Thank You.

Ответить
Luca Meghnagi
Luca Meghnagi - 03.01.2018 19:18

Variable names should use Lowe Camel Case… btw decent video

Ответить
CodeElsewhere
CodeElsewhere - 29.12.2017 08:08

you never know what the keyboard(or input view) height will be, hence hardcoding 250 is not great. Notification UIKeyboardWillShow can give you the triggering moment and the size of the keyboard.

Ответить
donut1
donut1 - 09.12.2017 22:27

thenks vanosgaming this made me get exp faster on gmod

Ответить
Anil Todakar
Anil Todakar - 29.10.2017 12:34

Please give some background colour for it.
helpful video.
Thank You

Ответить
Qazi Abdul Baseer
Qazi Abdul Baseer - 24.10.2017 15:41

Hi im facing the proplem for a while with my android keyboard. The problem is that often when i try to type some thing in my android the keyboard pop up and also show suggestions but nothing appears in the text field.I have frustrated from this i hope you will tell me some solution of this.

Ответить
Shubham Kumar
Shubham Kumar - 21.09.2017 16:03

When TextField getUp then If We touch ScrollView then it returns to it original position.
Its not a good method. Please suggest some IOS default method.

Ответить
Augusto wong
Augusto wong - 02.08.2017 05:29

AMAZING Video!

Ответить
Alex Linn
Alex Linn - 22.07.2017 07:53

Came here only for the dismiss keyboard action, but got some more, thanks a lot, great video!

Ответить
shaw kirkland
shaw kirkland - 17.07.2017 04:11

i'm i'm im im im im im im im im im im im i. i. im m

Ответить
M H
M H - 28.06.2017 05:47

brilliant tutorial! you deserve to go places! really sorry i dont have enough momey in my account to pledge to you patreon

Ответить
Z W
Z W - 26.06.2017 04:54

can we add scroll view after you have already placed textfields and buttons and made code? or I have to start from the beginning and add scroll view first and then do the rest ?
thanks

Ответить
Aamair syed
Aamair syed - 15.05.2017 15:06

Hi Jared Davidson, am using this method in swift 3
func textFieldDidBeginEditing(_ textField: UITextField) {
scrollview.setContentOffset(CGPoint(x: 0, y: 100), animated: true)
but textfield not moving up..please help me out

Ответить
LINKa
LINKa - 09.05.2017 23:33

I am android developer and it's so strange for me. but thanks

Ответить
Pedro
Pedro - 13.04.2017 05:49

i FUCKING love you

Ответить
cat vinchy
cat vinchy - 05.04.2017 13:41

Thank you So much .

Ответить
Aparna Ganesan
Aparna Ganesan - 14.03.2017 09:12

Could someone help me with the following:

1. My keyboard does not pop up on my simulator anymore. i'm only able to use the keyboard on my mac to enter values!
2. How do i resolve "unrecognized selector sent to instance" ?

Ответить
Seng Keat
Seng Keat - 02.03.2017 16:49

Hi Jared

Swift 3 did not have CGPointMake what is your solution then?

Ответить
R SL
R SL - 12.02.2017 23:59

Thank you for this tutorial, excellent explanation :D

Ответить
Madjer Martins
Madjer Martins - 07.02.2017 01:25

You're just amazing Jared...

Ответить
chrisauh
chrisauh - 20.01.2017 06:17

For those struggling with the CGPointMake error in Swift 3, use CGPoint instead.

So replace (CGPointMake(x: 0, y: 250)) with (CGPoint(x: 0, y: 250))

Ответить
Gebhardt Admin
Gebhardt Admin - 18.01.2017 18:09

Looks like great video, but this code is not working in SWIFT 3 as CGPointMake is not there anymore. Does some one has a fix to it, would really appreciate that

Ответить
Sok Penh
Sok Penh - 16.01.2017 11:34

very thank for your kind share

Ответить
iskandar suhaimi
iskandar suhaimi - 21.11.2016 08:22

nice one

Ответить
Nadeem Khoury
Nadeem Khoury - 21.11.2016 03:10

Super maaan ... Thanx a lot

Ответить
JP LGO
JP LGO - 19.11.2016 21:48

Thanks for this super tuto ! You rock

Ответить
Preet Singh Chhabra
Preet Singh Chhabra - 16.11.2016 00:21

if i want to set image as my background so should i add scrollview first or the image. text fields are in stack(in image)

Ответить
Marcelo Streliaev Gracietti
Marcelo Streliaev Gracietti - 14.11.2016 05:19

Thanks man!!

Ответить
dukes D
dukes D - 11.11.2016 10:08

how do you do this if you already have a table view instead of the scroll view?

Ответить
Carles Gòdia
Carles Gòdia - 14.10.2016 00:10

Hey, in swift 3 is the same code? It doesn't work for me. Thanks!

Ответить
あさひふぁくとりぃ
あさひふぁくとりぃ - 13.10.2016 17:04

I got stuck with this keyboard thing and this video is so super helpful! Thanks!

Ответить
Вадим Муравьев
Вадим Муравьев - 26.09.2016 20:23

отлично !!!

Ответить
Music Lyrics
Music Lyrics - 23.09.2016 03:49

other option :
if (textField.layer.position.y > 250) {
scrollViewOut.setContentOffset(CGPointMake(0, 250), animated: true)
}

Ответить
Ele Kira
Ele Kira - 30.08.2016 16:53

Thank You Bro.

Ответить
Sudhagar Sudhagar
Sudhagar Sudhagar - 10.08.2016 08:50

Nice video.

Ответить
Jed Bury
Jed Bury - 03.08.2016 12:29

Seriously you are a legend....when i went on StackOverflow there are the most convoluted answers with people trying to show just how complicated you can make something. Yours worked superbly retrofitted on an existing app.
Just.Amazing.Keep.Going.Thanks

Ответить
Gopi S
Gopi S - 26.06.2016 19:18

Great !!!!

Ответить
Aleks Pavlovsky
Aleks Pavlovsky - 26.06.2016 05:16

you cant use CGPointMake anymore it gives errors: GPointMake is unavailable in swift

Ответить
Dan Kardell
Dan Kardell - 26.06.2016 00:27

Really great tutorial. Can you do one that is a bit more complexed like a registration screen that has 5 entry fields a date picker and a register button?

Ответить
mina benyamin
mina benyamin - 21.06.2016 16:58

your explanation is clear
my problem is that, it's supposed that once I put the UITextField in the main Storyboard and then press build, once I click the text field the keyboard will show up (no need for any code) however, it doesn't happen with me!
how I can fix that?

Ответить
Mike Jones
Mike Jones - 03.06.2016 05:52

Thanks certainly the best demo of text and keyboard issues I have seen.
Please do keep this up to date and show how the other keyboards work also.
Thanks.

Ответить
Rajungan
Rajungan - 07.05.2016 07:08

really really helped me a lot. this is the only clear tutor about keyboard & textfield i found on the internet

Ответить
xiaoboy001
xiaoboy001 - 04.05.2016 19:33

so awesome

Ответить