ios - Subview's sublayers overlapping higher subviews -
i have issue: i'm creating uiview returned method, , part fine, i've noticed when add sublayers 1 of subviews, layers overlap subviews higher in hierarchy (textview , imageview) sublayers added testviewcopy appearing on top of these subviews, , aren't supposed to. have no idea what's going on here cause this. code: - (void)makeshareimages { uiview *shareview = [self shareview]; uiview *testviewcopy = [shareview viewwithtag:0]; nsuinteger currentindex = 1; (nsdictionary *sub in self.array) { nsarray *lastarray = [sub objectforkey:@"lastarray"]; (nsdictionary *dict in lastarray) { @autoreleasepool { currentindex ++; circlelayer *layer = [[circlelayer alloc]init]; layer.portrait = [[dict objectforkey:@"portrait"]boolvalue]; layer.frame = testviewcopy.bounds; [testviewcopy.layer addsublayer:l