Tagged Questions
0
votes
1answer
24 views
UIImageView within UIView doesn't respect constraint
I have a UIView of size width: 285 and height: 243. Within that view, I have a UIImageView (it is within that UIView according to Storyboard). That UIImageView has width 283 and height 241 (so that ...
0
votes
1answer
30 views
Custom border for UIView using CALayer and autolayout
I have to draw a custom border for a UIView.
I already have code to do that but it was written before we started using autolayout.
The code basically adds a sublayer of width/height=1.0f
...
1
vote
2answers
89 views
Use autolayout to set dynamic UIView to match container view
I have a UIView in IB that has another UIView within it, which I am using as a container view. In code, I create three different views and then animate the appropriate one into the container's view ...
0
votes
1answer
43 views
Dynamic uiview layout with auto layout
I'm working with autolayout and its been going very well so far but right now I am at lost as to the way to proceed to achieve the design I want.
I got a a small questionnaire with 2 sections. Each ...
0
votes
1answer
43 views
Evenly Space UIViews of equal sizes in superview using Auto Layout in iOS 6
I am in a need of having the series of buttons to be evenly placed in superview Horizontally using Auto Layout.
Here, I want to keep the sizes of the subviews same, only the center of the subviews ...
0
votes
2answers
57 views
how to use autoresizing and autolayout and change its default behaviour?
I have one parentview as Scrollview.I have added two subviews view1,view2 on that scrollview.
But I need to do the following in same time
when I increase the height of one of my subviews view1 in ...
0
votes
1answer
132 views
IOS - Centering UIScrollView inside UIView container programmatically with Autolayout issue
I'm trying to replicate the safari pages scrollview, which has its frame that is slightly narrower than iPhone screen. So According to few suggestions I'm placing a the scrollview (450x280 points) ...
0
votes
1answer
62 views
IOS6 - getting IBoutlet's frame from viewDidLoad returns 0
I'm working on storyboard with Autolayout. I have a viewController (i.e. myController) and I dragged in it a UIView (i.e. myView).
in myController.h I declared an IBOutlet for myView:
@property ...
0
votes
0answers
26 views
is there a standard recipe for: Creating a 'WidgetView' subclass of UIView that behaves nicely with NSLayoutConstraints and AutoLayout
Is there a standard recipe for creating UIView subclasses with NSLayoutConstraints using XIBs
all I want is to design custom UIView that holds a few labels (weekday, date and month).
The visual ...
1
vote
1answer
74 views
View not animating with Autolayout
I've been searching around SO and have found some related posts, but none that have (yet) solved my problem.
I have a view setup in my storyboard, with a constraint hooked up through an IBOulet. ...
0
votes
0answers
22 views
Auto layout causes FPS drop on cell from Nib?
I created a control that uses the same dequeue reusable cell approach as UITableView and UICollectionView. Github project here.
I have two functions that register cell prototypes:
...
0
votes
1answer
109 views
UIScrollView crash when I use setContentSize with auto-layout
I have a custom UIView that I want to put into UIScrollView. I use this code:
-(void)viewDidLayoutSubviews{
myView = [[[NSBundle mainBundle]loadNibNamed:@"Case1" owner:self ...
0
votes
1answer
73 views
UIImage moves right on rotation - wrong center point?
When I rotate an image it moves right. It shouldn't. It seems like the center is set to the wrong point. See screenshot: In both states - rotated and not - the center of the "+" shouldn't change.
...
2
votes
1answer
102 views
Auto Layout of a UIViewController in Code using the Visual Formatting Language
I'd like to position a view emptyAddButton on the bottom left using auto layout in Code using the visual formatting language. Here's my current approach.
Initializing the button emptyAddButton, a ...
1
vote
1answer
222 views
UIView Element Layout Constraints
I'm fairly new to iOS development but have reached the point where I want to create my own composite UIView as a custom UIButton. I would like to layout a UILabel and 2x UIImageViews as follows;
...