UITextview加边框

        [contentTextView.layer setBorderColor: [[UIColor grayColor] CGColor]];    
        [contentTextView.layer setBorderWidth: 1.0];    
        [contentTextView.layer setCornerRadius:8.0f];    
        [contentTextView.layer setMasksToBounds:YES];

你可能感兴趣的:(UITextView)