I am using storyboard in my project. Storyboard has a custom view with auto layout.
CustomView.h
-(id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        NSLog (@"view: %f", self.frame.size.width);   //Returns wrong
        NSLog (@"view: %f", self.bounds.size.width);  //Returns wrong
}
return self;
}
If i run the app, it shows wrong frame.
Help me to solve this
                        
Because in
initWithCoder,theconstraintshas not been applied to the view.Example:
Code
And log