限制text View只能輸入10個字,無法輸入第11個字(用到shouldChangeTextIn,textViewDidChange function)

different from the textfiled project
this project use textViewDidChange function