-1
[RESOLVED] Guys, thank you so much for the answer, but I solved the problem by redoing what I already knew was wrong, this code was legacy, and was not good, but for lack of time I just needed to find a way to work. We negotiate more time with the client and now everything is already right.
Guys, I have an Uiview that is instantiated in Runtime, everything went well in the old iPhones, but now in the 6 and 6+, these Uiviews do not follow the size of the parent Uiview, which has constraints on the sides (Leading and trailing). In addition, these Uiviews are in a cell of a table.
What I tried to do, was to call [self.tableView reloadData] in viewDidLayoutSubviews and viewDidAppear from Uiviewcontroller, solved the problem, but Uiviewcontroller appears with the view in the old size and then redesigns itself to the new size (it takes a while, so it becomes visible to the user) Is there any way I can do this resizing without being visible to the user?
int width = barView.frame.size.width;
UIImageView *backgroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, width, 10)];
backgroundImageView.image = [backgroundImage resizableImageWithCapInsets:UIEdgeInsetsMake(2, 1, 1, 1)];
[barView addSubview:backgroundImageView];
the problem is that when I do in viewDidLoad, the width is 280, when I do in viewDidAppear, the width is 374...
If there is a function where I already have the View size but it has not yet been rendered, it would be ideal for me to update the table...
If possible show an excerpt of your code that is having trouble, it will be easier.
– Gian
I put an excerpt there, thanks for the touch...
– Alan Donizete