<commit_before>h1. SVProgressHUD

SVProgressHUD is a clean, lightweight and unobstruptive progress HUD for iOS. It's a simplified and prettyfied alternative to the popular "MBProgressHUD":https://github.com/jdg/MBProgressHUD. Its fade in/out animations are highly inspired on <NAME>'s HUD in Tweetie for iOS.


!http://samvermette.com/files/svprogresshud2.png!

SVProgressHUD features:

* one-line showing and dismissal
* optional loading, success and error status messages
* automatic centering based on its superview bounds (posY can be explicitely set)
* talks with @setNetworkActivityIndicatorVisible@ (can be disabled)

h2. Installation

Easiest way to install is to drag the @SVProgressHUD/SVProgressHUD@ folder to your project. That will add both the SVProgressHUD class and the image ressources (from "Glyphish":http://glyphish.com/) to your project. SVProgressHUD requires the *QuartzCore* framework, so make sure you add that as well. If you plan on using SVProgressHUD in a lot of places inside your app, I recommend importing it directly inside your prefix file.

h2. Usage

(see sample Xcode project in @/Sample@)

SVProgressHUD is created as a singleton (i.e. it doesn't need to be explictely allocated and instantiated) and can be shown with the following class methods, depending on the customization level you need to achieve:

<pre>
+ (void)show;
+ (void)showInView:(UIView*)view;
+ (void)showInView:(UIView*)view status:(NSString*)string;
+ (void)showInView:(UIView*)view status:(NSString*)string networkIndicator:(BOOL)b;
+ (void)showInView:(UIView*)view status:(NSString*)string networkIndicator:(BOOL)b posY:(CGFloat)posY;
</pre>

You dismiss it using one of these:

<pre>
+ (void)dismiss;
+ (void)dismissWithSuccess:(NSString*)successString;
+ (void)dismissWithError:(NSString*)errorString;
</pre>

If you're using SVProgressHUD to show the status of a many-steps operation, you can also change the HUD status __while__ it's showing using:

<pre>
+ (void)setStatus:(NSString*)string;
</pre><commit_msg>Fixed image, again<commit_after>h1. SVProgressHUD

SVProgressHUD is a clean, lightweight and unobstruptive progress HUD for iOS. It's a simplified and prettyfied alternative to the popular "MBProgressHUD":https://github.com/jdg/MBProgressHUD. Its fade in/out animations are highly inspired on <NAME>'s HUD in Tweetie for iOS.


!http://samvermette.com/files/svprogresshud3.png!

SVProgressHUD features:

* one-line showing and dismissal
* optional loading, success and error status messages
* automatic centering based on its superview bounds (posY can be explicitely set)
* talks with @setNetworkActivityIndicatorVisible@ (can be disabled)

h2. Installation

Easiest way to install is to drag the @SVProgressHUD/SVProgressHUD@ folder to your project. That will add both the SVProgressHUD class and the image ressources (from "Glyphish":http://glyphish.com/) to your project. SVProgressHUD requires the *QuartzCore* framework, so make sure you add that as well. If you plan on using SVProgressHUD in a lot of places inside your app, I recommend importing it directly inside your prefix file.

h2. Usage

(see sample Xcode project in @/Sample@)

SVProgressHUD is created as a singleton (i.e. it doesn't need to be explictely allocated and instantiated) and can be shown with the following class methods, depending on the customization level you need to achieve:

<pre>
+ (void)show;
+ (void)showInView:(UIView*)view;
+ (void)showInView:(UIView*)view status:(NSString*)string;
+ (void)showInView:(UIView*)view status:(NSString*)string networkIndicator:(BOOL)b;
+ (void)showInView:(UIView*)view status:(NSString*)string networkIndicator:(BOOL)b posY:(CGFloat)posY;
</pre>

You dismiss it using one of these:

<pre>
+ (void)dismiss;
+ (void)dismissWithSuccess:(NSString*)successString;
+ (void)dismissWithError:(NSString*)errorString;
</pre>

If you're using SVProgressHUD to show the status of a many-steps operation, you can also change the HUD status __while__ it's showing using:

<pre>
+ (void)setStatus:(NSString*)string;
</pre>
{'fraction_non_alphanumeric': 0.09149198520345253, 'fraction_numerical': 0.001972872996300863, 'mean_word_length': 5.933333333333334, 'pattern_counts': {'":': 4, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7006808', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1184, 'n_words': 459}