mercredi 25 mars 2015

ios swift - issues with keyboard (cover up textfield, etc..) and some other widgets

I'm an android guy and have recently started to learn swift.


I have went through the tutorial about the structure of swift, but what's really giving me headache now is the UI widgets




  1. keyboard covers up textfield. how can I make it so view would get pushed up if textfield is covered but does nothing when textfield is visible. the example I found here would push the view up or down to be exactly right above the keyboard, but pushing the view down isn't what I want.




  2. how can I have the error icon on the right within the textfield like this? and also how to add an additional row of navigation right above the keyboard to allow user go backward/forward and Done enter image description here




  3. I found a Date Picker in Object library, but it takes a lot of space. What I want is like the screenshot below. it pushes the view up when user click on something then disappear when done. and also the same question on how to have the additional nav bar right on the top of keyboard enter image description here




  4. I don't know if it's going to be the same thing as Date Picker. I also want a list show up at the bottom when event is triggered.




Can someone please please help me? or direct me to the right article. I found myself having really hard time on UI when coding in swift :(




Aucun commentaire:

Enregistrer un commentaire