Questions tagged [masonry-ios-osx]

Masonry is an iOS/OS X library for helping to create NSLayoutConstraints easily.

Masonry is an iOS/OS X library (https://github.com/Masonry/Masonry) for helping to create NSLayoutConstraints easily.

According to Masonry readMe:

Masonry is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Masonry has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. Masonry supports iOS and Mac OS X.

42 questions
0
votes
1 answer

Autolayout different constraints for landscape and portrait mode

I use Masonry library that helps with adding constraints programmatically. Its fine, but now i faced the problem that i need to uninstall and add new constraints after user rotate device from landscape to portrait. I tried rather "brutal" solution,…
Evgeniy Kleban
  • 6,794
  • 13
  • 54
  • 107
0
votes
1 answer

Is is possible to offset a constraint by the size of another view in iOS?

I am using masonry to programmatically setup constraints on views. Several times I have wanted to offset a constraint by a characteristic of another view. Is that possible? For example, I'd like to do this: [self.someView…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
0
votes
1 answer

Masonry UITableview Cell : Autolayout errors for multiline label

I am learning auto layout in iOS8 by using SnapKit . I got lot of errors while applying constraints to cell subviews. below is the code used as subview to cell.contentview. class FanFeedDynamicCellView: UIView{ var…
Srini
  • 387
  • 1
  • 13
  • 27
0
votes
1 answer

xcode sliding drawer using masonry autolayout

I'm having issues on creating an sliding drawer for a phone app, so, I have a landing screen and I have to display a drawer with animation, I already have the content of the drawer using masonry autolayout and I need to have the drawer animation and…
user9898
  • 25
  • 3
0
votes
1 answer

xcode masonry doesn't set the correct frame

I'm on a project that is using masonry autolayout, and I'm having some issues with the animation, so the thing I have to do is to have a drawer that will appear from the top of the screen and will appear with an animation, so the content of the…
user9898
  • 25
  • 3
0
votes
2 answers

iOS masonry on tableView cells

I'm using Masonry on table view cells, right now I have a UITableViewCell which is a container of views, something like this: *Table View(cellForRowAtIndexPath): MasonryTestTableViewCell *masonryCell = [tableView…
user9898
  • 25
  • 3
0
votes
1 answer

Constraints programmatically and with Storyboards

It is possible to set constraints programmatically and while using Storyboards? I am using this https://github.com/raphaelschaad/RSPlayPauseButton as well as this for constraints https://github.com/SnapKit/Masonry. However I they are not being…
user2420837
  • 305
  • 3
  • 14
0
votes
1 answer

Masonry in iOS UITableViewCell is very slow

I am working on an iOS app for the iPhone and have a UITableView with custom cells that have variable height. For the layout of the cells I am using Masonry: https://github.com/Masonry/Masonry. Everything is rendering to my liking, the only problem…
Phillip Martin
  • 1,910
  • 15
  • 30
0
votes
1 answer

Adding auto-layout constraints to subviews of a view with Masonry

I am using the Masonry iOS library to simplify some of the logic around iOS autolayout and have loved it thus far. Just recently, though, I'm working in a more complex app and attempting to add auto-layout constraints to subviews related to their…
Josh Lehman
  • 278
  • 5
  • 14
0
votes
3 answers

How to import Masonry (iOS) to my project?

Which file do I need to import into my project? If I just import the "Masonry" folder, it doesn't seem to work. Do I need to import other libs?
kRadius
  • 11
  • 2
0
votes
1 answer

UITableViewCell's implementation of -layoutSubviews needs to call super

I add a view in UITableViewCell , and use mas_makeConstraints (Masonry) UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kMASCellReuseIdentifier forIndexPath:indexPath]; UIView * view =[[UIView…
finab
  • 43
  • 5
-1
votes
2 answers

error :reason: '-[UITextField mas_makeConstraints:]: unrecognized selector

error comes out when this code run: [ageInputTextFiled mas_makeConstraints:^(MASConstraintMaker *make){}]; I have searched several similar problem to me ,most answer say that masonry is not link to the project successfully , but i load masonry by…
LEOliao
  • 1
  • 3
1 2
3