Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kieran Robinson
9,411 PointsDiary - Images.
The diary app has turned out great. However one of the bugs is that the image button on the new entry page does not retain its small circular image we selected. For example if i have picked an image, a small circular representation of it appears in the button. but if i save the diary entry and then open it up again, the button displays the 'no image' icon again, any help is appreciated kieran
Kieran Robinson
9,411 Pointsthis is my update method that is called when a user clicks on a post to edit it,
-(void)updateDiaryEntry {
if (self.pickedImage != nil) {
self.entry.imageData = UIImageJPEGRepresentation(self.pickedImage, 1.0);
}
self.entry.mood = self.pickedMood;
self.locationLabel.text = self.entry.location;
[self.locationButton setImage:[UIImage imageNamed:@"location_icon_pressed"] forState:UIControlStateNormal];
self.entry.body = self.textView.text;
self.pickedImage1.image = self.pickedImage;
}
'self.pickedImage1' is a UIImageView that i am trying to assign the 'pickedImage' the user has selected.
Marshall Huss
3,504 PointsMarshall Huss
3,504 PointsCould you include a sample of your code?