uitableview - Image View in Auto Layout using SDWebImage in Storyboards -



uitableview - Image View in Auto Layout using SDWebImage in Storyboards -

i'm having no luck getting image , uiimageview show right size in custom uitableviewcell. image correct, place in uitableviewcell not, , isn't close.

i don't have plenty reputation points post images sadly.

i have suggested constraints xcode 6 added or suggested, image showing huge , in front end of in uitableviewcell.

here's code have related it.

viewcontroller.m

self.tableview.rowheight = uitableviewautomaticdimension; self.tableview.estimatedrowheight = 600.0; nsstring *imageurl = [nsstring stringwithformat:@"%@", standardresolutionlocal.url]; __weak uitableviewcell *wcell = api2cell; [wcell.imageview sd_setimagewithurl:[nsurl urlwithstring:imageurl] placeholderimage:[uiimage imagenamed:@"320x180.gif"] ];

customtableviewcell.m

- (void)layoutsubviews { [super layoutsubviews]; [self.imageviewpic settranslatesautoresizingmaskintoconstraints:yes]; }

i'm using ios 8, xcode 6, , sdwebimage via cocoapods. help appreciated, thanks!

uitableview uiimageview storyboard sdwebimage

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -