I was also looking for a solution to a similar problem. Finally, I found that layer-supported views should be on integrated pixels and not on sub-pixels.
eg. if you dynamically calculate a frame with layer support
NSMakeRect((self.frame.size.width - 350)/2, (self.frame.size.height - 150)/2, 350, 150)
you may encounter non-integer values, so you should do something like
NSMakeRect(floor((self.frame.size.width - 350)/2), floor((self.frame.size.height - 150)/2), 350, 150)
Daniel O'Hara
source share