layoutsubviews Questions
1
I've this random crash in live app. I know how to fix it. I want to know how to find out offending code as the crashlytics log doesn't show any code in my app. Is this crashlytics crash?
Since it'...
Sickly asked 23/1, 2020 at 19:21
4
Solved
I have a custom UIView which has a dedicated, manually set frame for portrait and landscape orientation because autoresizingMasks just don't work in my case.
I set this frame in:
- (void)viewWillA...
Rudbeckia asked 27/9, 2011 at 14:3
0
Like many developers, I have an app that uses OpenGL via a UIView subclass whose layerClass: method returns [CAEAGLLayer class].
Note I am not using GLKit or GLKView or GLKViewController
When I c...
Caprifig asked 2/6, 2016 at 21:4
9
I have a prototype cell inside my UITableView which contains a UILabel. I want to dynamically change the size of the label (and the cell) depending on the size of the text in the label.
I create t...
Rackety asked 8/1, 2014 at 12:51
8
Solved
I have a custom view that's not getting layoutSubview messages during animation.
I have a view that fills the screen. It has a custom subview at the bottom of the screen that correctly resizes in ...
Contexture asked 8/4, 2009 at 3:5
3
Solved
I'm really puzzled by this, when I use auto layout on a subview the layoutSubview method loops infinitely.
All I'm doing is:
- (id)init
{
self = [super init];
if(self)
{
self.backgroundColor ...
Simoniac asked 4/9, 2013 at 8:35
2
Solved
I have a UITableView, in which each cell has a button.
When the button is clicked, the cell's height will be changed.
Of course, the whole tableview height will be changed according to it.
I cannot...
Rotor asked 10/4, 2015 at 15:54
3
I have custom UILabel which works fine on iOS6 and iOS7. But on iOS8 this label's (void)layoutSubviews method never get called.
I create this label with initWithFrame, so this method should be cal...
Housetop asked 1/7, 2014 at 12:42
4
Solved
I have a UIView with a bunch of subviews, all positioned using layoutSubviews. When the view is resized, the relative positions all change. I'd like these re-calculations to happen during an animat...
Strachey asked 12/9, 2010 at 2:39
2
Solved
it appears that viewDidLayoutSubviews is called immediately after layoutSubviews is called on a view, before layoutSubviews is called on the subviews of that view. Is there any way of knowing when ...
Dorfman asked 24/12, 2013 at 19:10
1
Solved
When changing some of the properties for UIView it triggers layoutSubviews in the superview. I can not find any statements about this in the docs.
These properties triggers layout in superview an...
Caramelize asked 8/7, 2014 at 13:15
1
Solved
I'm implementing horizontal scrolling in an app by making use of an UIPageViewController which I set the navigation property to 'Horizontal' and the Transistion Style to 'scroll'.
Everything works ...
Pyrrhic asked 20/2, 2013 at 14:58
1
Solved
I am trying to use autolayout for a uitableviewcell subclass I am creating and I would appreciate some advice on what method to put the layout constraint creation code. I have been searching around...
Montcalm asked 9/4, 2013 at 6:4
1
Solved
When my main view rotates I want to re-arrange the sub views, so in my ViewController, I override
willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInt...
Compeer asked 29/1, 2013 at 21:25
2
Solved
I'm working on a component that is a subclass from UIView and contains a UIScrollView.
When scrolling, I noticed different behaviors depending on which SDK I build with. On iOS 4 the layoutSubviews...
Tabber asked 7/11, 2011 at 12:24
1
© 2022 - 2024 — McMap. All rights reserved.