MCQs > IT & Programming > IOS Technical Test > How can you make the following code display with rounded corners? UIView *rectView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; rectView.backgroundColor = [UIColor redColor]; rectView.layer.cornerRadius = 8; [self.view addSubview:rectView];

IOS Technical Test MCQs

How can you make the following code display with rounded corners? UIView *rectView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; rectView.backgroundColor = [UIColor redColor]; rectView.layer.cornerRadius = 8; [self.view addSubview:rectView];

Answer

Correct Answer: rectView.layer.masksToBounds = YES;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

IOS Technical Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

IOS Technical Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it