ios - updating setImage to work with IOS7 -
i had bit of code in program utilized split uiview, after clicked first option, taken new leftviewcontroller 10 options. when selected 1 of 10, presented new options on left , picture in right view controller.
that worked in ios5, how ever im trying port program ios7 , works dont picture on right accustomed too. here code
if ([receivedrainobject isequaltostring:@"test"]) { self.lblselwhale.text=@"show up; [self.label2 removefromsuperview]; nslog(receivedrainobject); // [self.view addsubview:self.lblselwhale]; [self.view setneedsdisplay]; // cgrectmake(<#cgfloat x#>, <#cgfloat y#>, <#cgfloat width#>, <#cgfloat height#>) uiimage *image=[uiimage imagenamed:@"bowheadtree.tif"]; [imgclassification setimage:image]; // imgclassification.frame=cgrectmake(0, 80, 700, 500); imgclassification.frame=cgrectmake(50, 100, 600, 400); [self.view addsubview:self.imgclassification]; imgclassification.frame=cgrectmake(50, 100, 600, 400); } i should note nslog returns "test" fine, picture doesnt show. figure out appreciated. thanks
Comments
Post a Comment