I am having trouble copying the value of an NSString into a Textfield value. I've done this before, but for some reason it's not working in the function below. Can someone tell me if I'm doing something wrong?
pictureComment is the Textfield and comment is an NSString. When I look at the log file, only 'comment' prints. Any suggestions?
-(void) userPhotoComment:(PhotoComment*)userPhotoComment
didAddComment:(NSString*)comment
{
NSLog(@"PhotoPicker-DidAddComment: Below is the comment");
NSLog(comment); // this prints the comment correctly
pictureComment.text = [comment copy];
NSLog(@"PhotoPicker-DidAddComment: Below is the picture comment");
NSLog(pictureComment.text); // doesn't print
[self dismissModalViewControllerAnimated:YES];
/// ... more stuff is done below
}