Constraint in Swift 2

0

Is there any way to make responsive content without using Constraint? Because I'm making a rss reader and to adapt to all the iphone I have to put constraints but whenever I use them I see these errors in the console

Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x7fa26a6da110 UILabel:0x7fa26a6d8340'Construir una pista depor...'.top == UITableViewCellContentView:0x7fa26a6d7620.topMargin + 10>",
    "<NSLayoutConstraint:0x7fa26a6da1b0 V:[UILabel:0x7fa26a6d8340'Construir una pista depor...']-(5)-[UILabel:0x7fa26a6d9030'Martes, 14 de Junio de 20...']>",
    "<NSLayoutConstraint:0x7fa26a6da2f0 UITableViewCellContentView:0x7fa26a6d7620.bottomMargin == UILabel:0x7fa26a6d77c0'Son los anuncios que ha r...'.bottom + 10>",
    "<NSLayoutConstraint:0x7fa26a6da340 V:[UILabel:0x7fa26a6d9030'Martes, 14 de Junio de 20...']-(5)-[UILabel:0x7fa26a6d77c0'Son los anuncios que ha r...']>",
    "<NSLayoutConstraint:0x7fa26a6ed570 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fa26a6d7620(44.5)]>"
)
    
asked by ArtEze 14.06.2016 в 14:17
source

1 answer

0

You can do it in three ways, use the suggested constraints , configure them manually or connect your View to a ViewController and through code give the different properties with an if for example to each screen size.

    
answered by 14.06.2016 / 15:43
source