現(xiàn)在的很多應(yīng)用在做用戶信息展現(xiàn)這一塊,主流的形狀是圓形。這里我們可以用代碼來實(shí)現(xiàn):
rightImage.layer.masksToBounds=YES;
rightImage.layer.cornerRadius=rightImage.bounds.size.width/2;
rightImage.layer.borderColor= [UIColorclearColor].CGColor;
rightImage.layer.borderWidth=1.0;