ios - How do I have padding at the bottom of my UITextView like in Mail.app so the text isn't scrunched? -


in mail.app, if go create new message , type way text @ last line of uitextview there still decent amount of space between last line of text , keyboard if scroll down. can't type here. it's nice padding can read without being scrunched against keyboard, , if select text, selection handles don't extend under keyboard.

my question is, how mimic traditional uitextview?

i think can setting contentinset property of uitextview:

mytextview.contentinset = uiedgeinsetsmake(-4,-8,0,0); 

btw... values above not specific situation. want adjust these inset looking for.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -