Swift Autolayout warnings and other warnings i do not understand -


the app allows users post images/follow others etc.

so works fine following warnings: (i know has autolayout constraints how know causing problems?)

2015-07-05 17:19:37.701 pixym[1271:72192] cuicatalog: invalid asset name supplied:   2015-07-05 17:19:37.702 pixym[1271:72192] not load "" image referenced nib in bundle identifier "hp.pixym"   2015-07-05 17:19:37.705 pixym[1271:72192] 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:0x7fa83b822a40 h:[uiimageview:0x7fa83b8529a0(300)],  nslayoutconstraint:0x7fa83b85ccb0 h:[uiimageview:0x7fa83b8529a0]-(10)-|   (names: '|':uitableviewcellcontentview:0x7fa83b871ff0 ),  nslayoutconstraint:0x7fa83b8643d0 h:|-(10)-[uiimageview:0x7fa83b8529a0]   (names: '|':uitableviewcellcontentview:0x7fa83b871ff0 ),  nslayoutconstraint:0x7fa83b80ab00 'uiview-encapsulated-layout-width' h:[uitableviewcellcontentview:0x7fa83b871ff0(375)])  attempt recover breaking constraint  nslayoutconstraint:0x7fa83b822a40 h:[uiimageview:0x7fa83b8529a0(300)]  make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in uikit/uiview.h may helpful. 

any appreciated.

from constraints, seems have imageview width of 300 , left , right padding of 10. work fine on iphone 5(where screen width 320) crash on iphone 6/ 6 plus because there width bigger.

what need do, figure out how want image on screens. 10 pixels padding more important width or have width of 300?

if want width, remove other 2 constraints , add center horizontal in container constraint image.

in other case, remove width constraints , should work.

good luck!


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -