Skip to content

Whirlwind/MBProgressHUD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBProgressHUD

MBProgressHUD is an iPhone drop-in class that displays a translucent HUD with a progress indicator and some optional labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features.

MBProgressHUD is iOS4 and iPad compatible and released under the MIT license (see MBProgressHUD.h).

Adding MBProgressHUD to your project

The simplest way to add the MBProgressHUD to your project is to directly add the MBProgressHUD.h and MBProgressHUD.m source files to your project.

  1. Download the latest code version from the repository (you can simply use the Download Source button and get the zip or tar archive of the master branch).
  2. Extract the archive.
  3. Open your project in Xcode, than drag and drop MBProgressHUD.h and MBProgressHUD.m to your classes group (in the Groups & Files view).
  4. Make sure to select Copy items when asked.

If you have a git tracked project, you can add MBProgressHUD as a submodule to your project.

  1. Move inside your git tracked project.
  2. Add MBProgressHUD as a submodule using git submodule add git://github.com/matej/MBProgressHUD.git MBProgressHUD .
  3. Open your project in Xcode, than drag and drop MBProgressHUD.h and MBProgressHUD.m to your classes group (in the Groups & Files view).
  4. Don't select Copy items and select a suitable Reference type (relative to project should work fine most of the time).

Usage

Extensive documentation is provided in the header file (MBProgressHUD.h). In additiona a full Xcode demo project is included in the Demo directory.

License

This code is distributed under the terms and conditions of the MIT license.

Copyright (c) 2011 Matej Bukovinski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Change-log

Version 0.4 @ 25.07.10

Version 0.33 @ 27.03.10

  • Custom view operation mode added.
  • Fixed a memory leak.

Version 0.32 @ 4.01.10

  • Added minShowTime, graceTime, xOffset, yOffset.
  • Various fixes.

Version 0.31 @ 8.10.09

  • Fix for touch through during the fade-out animation.

Version 0.3 @ 30.9.09

  • Added show: and hide: methods.
  • Now using UIViews layoutSubviews to automate layout calls.
  • Added some floors to round pixel positions and thereby prevent unsharp views.
  • Some additional documentation and code cleanup.

Version 0.2 @ 21.7.09

  • Added determinate progress mode and switching capabilities between determinate and indeterminate modes.
  • Various bugfixes.

Version 0.11 @ 2.6.09.

  • Updated labelText and detailsLabelText properties to support text modifications while the HUD is being shown.

Version 0.1 @ 2.4.09

  • Initial release.

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%