xcode - UiTableCell UIImageView - last cell not displaying image -



xcode - UiTableCell UIImageView - last cell not displaying image -

i have using storyboards , have view uitableview custom uitable cell.

the cell has uiswitch, uilabel , uiimageview. there 3 rows in table , displays should apart the uiimageview in lastly row.

the info there uiswitch , uilabel set correctly. image exists , valid same image used in first row displays correctly. code cellforrowatindexpath below

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { nslog(@"in settingsviewcontroller cellforrowatindexpath\n"); shared_prefs = [sharedprefs sharedinstance]; message *mymessage = [shared_prefs.messages objectatindex:indexpath.row]; static nsstring *cellidentifier = @"mytablecellid"; mytablecell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier]; // configure cell... if (cell == nil) { cell = [[mytablecell alloc] initwithstyle:uitableviewcellstylesubtitle reuseidentifier:cellidentifier]; } cell.maintext.text = mymessage.messagetext; cell.mainimage.image=nil; [cell.mainimage setimage:[uiimage imagenamed:mymessage.background]]; [cell.activeswitch seton:mymessage.active]; if (mymessage.deletable) { cell.accessorytype = uitableviewcellaccessorydetaildisclosurebutton; } else { cell.accessorytype = uitableviewcellaccessorynone; } cell.selectionstyle = uitableviewcellselectionstylenone; cell.detailtextlabel.textcolor = [uicolor blackcolor]; homecoming cell; }

any help appreciated, driving me made !!!

i have checked suggested , yes, show images, both first & 3rd rows utilize image1 in 3rd row image isn't shown. actual output is 2014-06-26 20:52:34.664 positivity[428:70b] in settingsviewcontroller numberofsectionsintableview 2014-06-26 20:52:34.665 positivity[428:70b] in settingsviewcontroller numberofrowsinsection 2014-06-26 20:52:34.666 positivity[428:70b] in settingsviewcontroller cellforrowatindexpath 2014-06-26 20:52:34.671 positivity[428:70b] background image |photo_1.jpg| 2014-06-26 20:52:34.672 positivity[428:70b] in settingsviewcontroller cellforrowatindexpath 2014-06-26 20:52:34.674 positivity[428:70b] background image |photo_2.jpg| 2014-06-26 20:52:34.690 positivity[428:70b] in settingsviewcontroller cellforrowatindexpath 2014-06-26 20:52:34.693 positivity[428:70b] background image |photo_1.jpg|

xcode uitableview uiimageview storyboard row

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -