UIView 設置邊框顏色 和 UILabel 的設置

    view3.layer.borderWidth = 1;spa

    [view3.layer setBorderColor:[UIColor colorWithWhite:214/255.0f alpha:1].CGColor];3d


    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 20, 210, 44)];orm

    [label setText:@"用戶登錄"];it

    [label setFont:[UIFont systemFontOfSize:17.0]];margin

    [label setTextAlignment:NSTextAlignmentCenter];top

相關文章
相關標籤/搜索