I have a container view, @property (weak, nonatomic) IBOutlet UIView *containerView; but it will not move when I set its frame. This is how I try:
- (void)setFramesForCategories { CGRect frame = _containerView.frame; frame.origin.x = 20; frame.origin.y = self.view.frame.size.height - 52; frame.size.width = 236; frame.size.height = 60 * [[_dataDict objectForKey:@"Key"] count]; _containerView.frame = frame; }
I know that this is basic, and it worked for me before when I moved programmatically created objects, but now it does not work for me.
source share