UITextView 设置边框

    UITextView * txtView = [[UITextView alloc] initWithFrame:CGRectMake(10, 50, 200, 50)];

    txtView.backgroundColor = [UIColorclearColor];

    txtView.layer.masksToBounds = YES;

    txtView.layer.borderWidth = 1.0f;

    txtView.layer.borderColor = [UIColorredColor].CGColor;

    [self.view addSubview:txtView];

 

posted @ 2014-03-14 15:31  Dadada胖纸er  阅读(380)  评论(0编辑  收藏  举报