I have the following code in two different classes (both subclasses of UIView). In one place, it works great, the border is drawn. Elsewhere, I get warnings about methods that are not found, and of course, the border fails. How is this possible?
UIView* test = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100,100)]; test.backgroundColor = [UIColor redColor]; [test.layer setBorderColor: [[UIColor blueColor] CGColor]];
ios objective-c core-animation uiview
sol
source share