-(void)touchesBegan:(NSSet )touches withEvent:(UIEvent )event
{
//宣告一個UITouch的指標來存放事件觸發時所擷取到的狀態
UITouch *touch = [[event allTouches] anyObject];
CGFloat ly = [touch locationInView: self.remarkTextView].y;
if ( ly < 0 || ly > viewHeight(self.remarkTextView) ) { //點標題欄也會消失,點其他地方捕捉不到了
[self.remarkTextView resignFirstResponder];
}
[super touchesBegan:touches withEvent:event];
}