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

iOS

Building a Self Destruction iPhone MBProgressHUD Credit Exercise

Hi, i am having problems putting the text after the photo is finished sending to recipient. I put these lines of coding into the uploadMessage () ; method but i could not get the HUD to display the text message when the PFFile was sent successfully to the backend server. What went wrong in my codes? (And as seen from here, posting in the description without the return key working in this description box is making me even more difficult to ask question.)

else {
          // Everything is successful
          MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];

          // Configure for text only and offset down
          hud.mode = MBProgressHUDModeText;
          hud.labelText = @"Some message...";
          hud.margin = 10.f;
          hud.yOffset = 150.f;
          hud.removeFromSuperViewOnHide = YES;

          [hud hide:YES afterDelay:3];
          [self reset];
        }
Ben Jakuben
Ben Jakuben
Treehouse Teacher

Sorry for the trouble - the return key issue is on our list of issues from the recent redesign and should be fixed soon.

Anyway the return key for starting a new thread in the forum is still not working after the maintenance was performed.

2 Answers

I got it worked out with another github project here

https://github.com/samvermette/SVProgressHUD

Still no success with MBProgressHud. This is a lot easier and simpler to use for the Ribbit app.

i am posting my codes again as the start a new thread text box is buggy. These codes are copied from the GitHub demo Xcode build files.

        else {
      // Everything is successful
      MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];

      // Configure for text only and offset down
      hud.mode = MBProgressHUDModeText;
      hud.labelText = @"Some message...";
      hud.margin = 10.f;
      hud.yOffset = 150.f;
      hud.removeFromSuperViewOnHide = YES;

      [hud hide:YES afterDelay:3];
      [self reset];
    }