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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -