last day (19 days later) » 

2:33 PM
room topic changed to DonMagTemp: Just a temp chat room (no tags)
 
 
4 hours later…
6:10 PM
hello
 
Hi
Did you get it worked out?
If not, you can upload a screen-cap right here in the chat...
 
Let me send you latest snaps
first is from iPhone 7 second is from iPhone SE
Plesse share your review :-)
 
the faulty "circle" is due to when the corner radius is being set...
are you using a subclassed view for the images?
 
Yes
Yes I'm using subclass of ImageView
 
if I recall correctly, make sure you set the corner radius in "layoutSubviews" (I think)
 
6:21 PM
no at present It is in awakefromnib
Should I set corner radius in layoutSubviews?
 
you are using layer.cornerRadius ?
 
Yes
self.layer.cornerRadius=self.frame.size.width/2;
self.layer.borderWidth=1.5f;
self.layer.borderColor=[UIColor whiteColor].CGColor;
self.clipsToBounds=YES;
see this is my code in ImageView
 
ok - then yep, you should be able to put all of that in:
- (void)layoutSubviews { }
 
Do you have any better suggestion?Please guide me
Oh my God .. its Damn seems working now
 
borderWidth, borderColor and clipsToBounds ... it doesn't matter... might as well leave those in awakeFromNib....
CALayers do not resize with the view, so you have to reset values in layoutSubviews()
 
6:27 PM
@DonMag thanks buddy I'm really thankful to you
 
glad I could help... good luck with your project!
 
Thank you buddy
Thank you for your guidance :)
I'll accept answer
Hello
Can you help me for removing downvote from my question?
 

  last day (19 days later) »