ios - Custom PFTableViewCell getting 'squished' - Constraint error in Swift + Parse -


i have set parse pftableviewcontroller , want fill table custom cells.

when view loads, pftableview populated cells of custom cell type have cell height greater default 44 (i made class custom cell subclass of pftableviewcell etc.) , when tap on one, fires segue detail view have made.

but! when tap "< back" go pftableviewcontroller custom cells, cell height changes 44 , gets squished!

(i post screenshot, not yet have enough reputation)

i following error when first load pftableviewcontroller:

unable simultaneously satisfy constraints.     @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)  (     "<nslayoutconstraint:0x7fc859f82d90 h:[uilabel:0x7fc859f8b930'00%'(48)]>",     "<nslayoutconstraint:0x7fc859fa95c0 h:[uilabel:0x7fc859fa9350(12)]>",     "<nslayoutconstraint:0x7fc859faa1e0 h:|-(0)-[uilabel:0x7fc859fa9350]   (names: '|':uitableviewcellcontentview:0x7fc859f88bc0 )>",     "<nslayoutconstraint:0x7fc859faa280 h:[uilabel:0x7fc859fa9350]-(nsspace(8))-[uilabel:0x7fc859f8bfd0'course name']>",     "<nslayoutconstraint:0x7fc859faa390 uilabel:0x7fc859fa97f0'course code'.leading == uilabel:0x7fc859f8bfd0'course name'.leading>",     "<nslayoutconstraint:0x7fc859faa3e0 uilabel:0x7fc859f8b930'00%'.trailing == uitableviewcellcontentview:0x7fc859f88bc0.trailingmargin>",     "<nslayoutconstraint:0x7fc859faa430 h:[uilabel:0x7fc859fa97f0'course code']-(nsspace(8))-[uilabel:0x7fc859f8b930'00%']>",     "<nslayoutconstraint:0x7fc859fb25c0 'fittingsizehtarget' h:[uitableviewcellcontentview:0x7fc859f88bc0(34)]>" ) 

will attempt recover breaking constraint

<nslayoutconstraint:0x7fc859f82d90 h:[uilabel:0x7fc859f8b930'00%'(48)]> 

does know how fix problem or might causing it?

note: still new stackoverflow please tell me if have not been clear enough :)

well asked question in opinion! using?:

func tableview(tableview: uitableview!, heightforrowatindexpath indexpath: nsindexpath!) -> cgfloat {      return yourspecifiedheight } 

if not, make sure that's specified when table reloads, uses value.


Popular posts from this blog