Created
February 7, 2017 20:05
-
-
Save alobanov/d46dabb470e0a54ade3ff934ae935de5 to your computer and use it in GitHub Desktop.
Example, how to use HUDItem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// создаём элемент худа | |
HUDItem *item = [HUDItem itemWithTitle:@”Title” andDetail:@”Test”]; | |
// Возможные настройки | |
item.hideDelay = 2.0; // время показа | |
item.imageType = HUDImage_SadFace; // картинка | |
item.dimBackground = YES; // затемнять фон | |
item.mode = ProgressHUDModeText; // тип hud’a | |
// Показать созданый item | |
[ALHUDManager showHUD:item]; | |
// для ручного уничтожения | |
[ALHUDManager hideHud]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment