How to create UIButton in UIImageView's top left corner and bottom right corner
问题 I wish to create delete button in imageview's top left corner and bottom right corner. but it doesn't look like what I needed. I wish both the buttons should be placed on corner of the Red border To create the button I used the code below UIImageView * tappedView = (UIImageView *)[recognizer view]; [tappedView.layer setBorderColor: [[UIColor redColor] CGColor]]; [tappedView.layer setBorderWidth: 2.0]; tappedView.layer.cornerRadius = 10; tappedView.layer.masksToBounds = NO; UIButton *deleteBtn